This commit is contained in:
parent
5f42e7cc90
commit
bcdbe45558
3 changed files with 169 additions and 0 deletions
41
pkgs/osc777/default.nix
Normal file
41
pkgs/osc777/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, coreutils, makeWrapper, stdenvNoCC }:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "osc777";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./osc777;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/osc777
|
||||
chmod a+x $out/bin/osc777
|
||||
'';
|
||||
|
||||
wrapperPath = lib.makeBinPath [
|
||||
coreutils
|
||||
];
|
||||
|
||||
fixupPhase = ''
|
||||
patchShebangs $out/bin/osc777
|
||||
wrapProgram $out/bin/osc777 --prefix PATH : "${wrapperPath}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
A script to send notifications using the OSC777 escape sequence
|
||||
'';
|
||||
homepage = "https://git.belanyi.fr/ambroisie/nix-config";
|
||||
license = with licenses; [ mit ];
|
||||
mainProgram = "osc777";
|
||||
maintainers = with maintainers; [ ambroisie ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue