diff options
author | lassulus <lassulus@lassul.us> | 2020-08-06 23:22:35 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-08-06 23:22:35 +0200 |
commit | 04d9ff2dcdc039518391fcb41ffbb256e2f4ba23 (patch) | |
tree | b43df90781f3500e5fb63b4862ef56f750635563 /makefu/5pkgs/chapter-marker | |
parent | 087fff54f11d28c9a08849c70520ecf9030f4ce9 (diff) | |
parent | 3d8f07d4be7c2dc50f9de50ce2b1d55b9bdc7b90 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/chapter-marker')
-rw-r--r-- | makefu/5pkgs/chapter-marker/default.nix | 30 |
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} + ''; +} |