Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
blueprint-compiler,
|
|
cargo,
|
|
desktop-file-utils,
|
|
fetchFromGitLab,
|
|
libadwaita,
|
|
meson,
|
|
ninja,
|
|
nix-update-script,
|
|
pkg-config,
|
|
rustPlatform,
|
|
rustc,
|
|
stdenv,
|
|
wrapGAppsHook4,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chance";
|
|
version = "4.0.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "zelikos";
|
|
repo = "rollit";
|
|
rev = "refs/tags/${finalAttrs.version}";
|
|
hash = "sha256-25+/TvTba/QF7+QE8+O7u4yc9BNi0pcZeNj11dGkEfg=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-ObT3l/Exk6UzUGmzCed7mJ7hVzg8CsQIT3fe1RIUfIM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
blueprint-compiler
|
|
cargo
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
rustc
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Dice roller built using GTK4 and libadwaita";
|
|
homepage = "https://gitlab.com/zelikos/rollit";
|
|
changelog = "https://gitlab.com/zelikos/rollit/-/releases/${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ Guanran928 ];
|
|
mainProgram = "rollit";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|