nixpkgs/pkgs/tools/misc/urn-timer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1002 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv
2021-01-10 14:30:09 +00:00
, fetchFromGitHub
, unstableGitUpdater
, xxd
, pkg-config
, imagemagick
, wrapGAppsHook3
2021-01-10 14:30:09 +00:00
, gtk3
, jansson
2024-02-04 18:59:22 +00:00
, nixosTests
2021-01-10 14:30:09 +00:00
}:
stdenv.mkDerivation {
pname = "urn-timer";
version = "0-unstable-2024-03-05";
2021-01-10 14:30:09 +00:00
src = fetchFromGitHub {
owner = "paoloose";
2021-01-10 14:30:09 +00:00
repo = "urn";
rev = "10082428749fabb69db1556f19940d8700ce48a2";
hash = "sha256-sQjHQ/i1d4v4ZnM0YAay+MdIj5l/FfIYj+NdH48OqfU=";
2021-01-10 14:30:09 +00:00
};
nativeBuildInputs = [
xxd
pkg-config
imagemagick
wrapGAppsHook3
2021-01-10 14:30:09 +00:00
];
buildInputs = [
gtk3
jansson
];
makeFlags = [ "PREFIX=$(out)" ];
passthru.updateScript = unstableGitUpdater {
url = "https://github.com/paoloose/urn.git";
2021-01-10 14:30:09 +00:00
};
2024-02-04 18:59:22 +00:00
passthru.tests.nixosTest = nixosTests.urn-timer;
2021-01-15 09:19:50 +00:00
meta = with lib; {
homepage = "https://github.com/paoloose/urn";
2021-01-10 14:30:09 +00:00
description = "Split tracker / timer for speedrunning with GTK+ frontend";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fgaz ];
mainProgram = "urn-gtk";
2021-01-10 14:30:09 +00:00
};
}