From 86d28f1f591f71885469dea5e962d3aef41dcee2 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 20 Jul 2020 21:36:01 +0200 Subject: ma pkgs.chapter-marker: init at 2020-07-20 --- makefu/5pkgs/chapter-marker/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 makefu/5pkgs/chapter-marker/default.nix (limited to 'makefu/5pkgs/chapter-marker') 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} + ''; +} -- cgit v1.2.3