diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2021-01-10 15:30:09 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2021-01-10 22:29:48 +0100 |
commit | 5dc817a54c22c946a215aa4c59e88e25c73e825c (patch) | |
tree | fde872eb73f5ef0f8a91be54314c6c6208123131 /pkgs/tools/misc/urn-timer | |
parent | dd6c0efa628763b5f486eb3ad40599d45622ffa7 (diff) | |
download | nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar.gz nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar.bz2 nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar.lz nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar.xz nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.tar.zst nixpkgs-5dc817a54c22c946a215aa4c59e88e25c73e825c.zip |
urn-timer: init at unstable-2017-08-20
Diffstat (limited to 'pkgs/tools/misc/urn-timer')
-rw-r--r-- | pkgs/tools/misc/urn-timer/default.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/tools/misc/urn-timer/default.nix b/pkgs/tools/misc/urn-timer/default.nix new file mode 100644 index 00000000000..a6871526f18 --- /dev/null +++ b/pkgs/tools/misc/urn-timer/default.nix @@ -0,0 +1,66 @@ +{ stdenv +, fetchFromGitHub +, fetchpatch +, unstableGitUpdater +, xxd +, pkg-config +, imagemagick +, wrapGAppsHook +, gtk3 +, jansson +}: + +stdenv.mkDerivation { + pname = "urn-timer"; + version = "unstable-2017-08-20"; + + src = fetchFromGitHub { + owner = "3snowp7im"; + repo = "urn"; + rev = "246a7a642fa7a673166c1bd281585d0fc22e75b2"; + sha256 = "0bniwf3nhsqapsss9m9y9ylh38v6v7q45999wa1qcsddpa72k0i0"; + fetchSubmodules = true; + }; + + patches = [ + # https://github.com/3snowp7im/urn/pull/50 + (fetchpatch { + name = "stop-hardcoding-prefix"; + url = "https://github.com/3snowp7im/urn/commit/6054ee62dcd6095e31e8fb2a229155dbbcb39f68.patch"; + sha256 = "1xdkylbqlqjwqx4pb9v1snf81ag7b6q8vybirz3ibsv6iy79v9pk"; + }) + # https://github.com/3snowp7im/urn/pull/53 + (fetchpatch { + name = "create-installation-directories"; + url = "https://github.com/3snowp7im/urn/commit/fb032851b9c5bebb5066d306f5366f0be34f0797.patch"; + sha256 = "0jjhcz4n8bm3hl56rvjzkvxr6imc05qlyavzjrlafa19hf036g4a"; + }) + ]; + + postPatch = ''substituteInPlace GNUmakefile --replace 'rsync -a --exclude=".*"' 'cp -r' ''; + + nativeBuildInputs = [ + xxd + pkg-config + imagemagick + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + jansson + ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + passthru.updateScript = unstableGitUpdater { + url = "https://github.com/3snowp7im/urn.git"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/3snowp7im/urn"; + description = "Split tracker / timer for speedrunning with GTK+ frontend"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fgaz ]; + }; +} |