2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv
|
2021-01-10 14:30:09 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, xxd
|
|
|
|
, pkg-config
|
|
|
|
, imagemagick
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, jansson
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "urn-timer";
|
2023-07-31 17:52:35 +00:00
|
|
|
version = "unstable-2023-07-31";
|
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";
|
2023-07-31 17:52:35 +00:00
|
|
|
rev = "2dad51949aa21e0e66a3d34e916fb66689c6be2e";
|
|
|
|
hash = "sha256-0pZjgKW4kyBgMGKEa8ZMhKtzbJX2MoXKID++iy16m2A=";
|
2021-01-10 14:30:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
xxd
|
|
|
|
pkg-config
|
|
|
|
imagemagick
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|