ma pkgs.chapter-marker: init at 2020-07-20
This commit is contained in:
parent
d1989632cf
commit
86d28f1f59
30
makefu/5pkgs/chapter-marker/default.nix
Normal file
30
makefu/5pkgs/chapter-marker/default.nix
Normal 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}
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user