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