summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
Diffstat (limited to 'makefu')
-rw-r--r--makefu/5pkgs/chapter-marker/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/makefu/5pkgs/chapter-marker/default.nix b/makefu/5pkgs/chapter-marker/default.nix
new file mode 100644
index 000000000..fe3e48142
--- /dev/null
+++ b/makefu/5pkgs/chapter-marker/default.nix
@@ -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}
+ '';
+}