nix-config/pkgs/osc52/default.nix

42 lines
835 B
Nix
Raw Normal View History

2023-02-20 11:44:28 +01:00
{ lib, coreutils, makeWrapper, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "osc52";
version = "0.1.0";
src = ./osc52;
2023-04-22 13:36:28 +02:00
nativeBuildInputs = [
2023-02-20 11:44:28 +01:00
makeWrapper
];
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/osc52
chmod a+x $out/bin/osc52
'';
wrapperPath = lib.makeBinPath [
coreutils
];
fixupPhase = ''
patchShebangs $out/bin/osc52
wrapProgram $out/bin/osc52 --prefix PATH : "${wrapperPath}"
'';
meta = with lib; {
description = ''
A script to copy strings using the OSC52 escape sequence
'';
homepage = "https://git.belanyi.fr/ambroisie/nix-config";
2023-02-20 11:44:28 +01:00
license = with licenses; [ mit ];
mainProgram = "osc52";
2023-02-20 11:44:28 +01:00
maintainers = with maintainers; [ ambroisie ];
platforms = platforms.linux;
2023-02-20 11:44:28 +01:00
};
}