ma pkgs.chapter-marker: init at 2020-07-20

This commit is contained in:
makefu 2020-07-20 21:36:01 +02:00
parent d1989632cf
commit 86d28f1f59
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -0,0 +1,30 @@
{ coreutils, fetchFromGitHub, makeWrapper, xdotool, stdenv, ... }:
stdenv.mkDerivation rec {
name = "chapter-marker-${version}";
version = "master";
src = fetchFromGitHub {
owner = "makefu";
repo = "chapter-marker";
rev = "7602b611fb3d67fdb8a86db23220074dfa9dfa1e";
sha256 = "0cwh650c3qhdrcvrqfzgrwpsnj4lbq64fw2sfwvnbxz94b4q36av";
};
buildInputs = [ makeWrapper ];
installPhase =
let
path = stdenv.lib.makeBinPath [
coreutils
xdotool
];
in
''
mkdir -p $out/bin
cp chapter-mark chapter-start $out/bin/
wrapProgram $out/bin/chapter-mark \
--prefix PATH : ${path}
wrapProgram $out/bin/chapter-start \
--prefix PATH : ${path}
'';
}