2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv
|
2021-01-10 14:30:09 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, xxd
|
|
|
|
, pkg-config
|
|
|
|
, imagemagick
|
2024-04-26 20:24:03 +00:00
|
|
|
, 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";
|
2024-02-07 17:16:05 +00:00
|
|
|
version = "0-unstable-2024-03-05";
|
2021-01-10 14:30:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-19 16:35:43 +00:00
|
|
|
owner = "paoloose";
|
2021-01-10 14:30:09 +00:00
|
|
|
repo = "urn";
|
2024-03-05 20:40:01 +00:00
|
|
|
rev = "10082428749fabb69db1556f19940d8700ce48a2";
|
|
|
|
hash = "sha256-sQjHQ/i1d4v4ZnM0YAay+MdIj5l/FfIYj+NdH48OqfU=";
|
2021-01-10 14:30:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
xxd
|
|
|
|
pkg-config
|
|
|
|
imagemagick
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2021-01-10 14:30:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
jansson
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
2023-03-19 16:35:43 +00:00
|
|
|
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; {
|
2023-03-19 16:35:43 +00:00
|
|
|
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 ];
|
2023-03-19 16:35:43 +00:00
|
|
|
mainProgram = "urn-gtk";
|
2021-01-10 14:30:09 +00:00
|
|
|
};
|
|
|
|
}
|