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
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "illuminanced";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mikhail-m1";
|
|
repo = "illuminanced";
|
|
tag = "${finalAttrs.version}";
|
|
hash = "sha256-ZEVma0uj9rsWB+vfUL7w3dHxI/ppBCG23TirGE+RREk=";
|
|
};
|
|
|
|
cargoHash = "sha256-kPWoQ6rE4wBjmqQLNPY4UWJt/AOgr+eVKY0ZK7B4K1A=";
|
|
|
|
preBuild = ''
|
|
substituteInPlace src/main.rs \
|
|
--replace-fail /usr/local/etc/illuminanced.toml $out/share/illuminanced/illuminanced.toml
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -Dm0644 illuminanced.toml $out/share/illuminanced/illuminanced.toml
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Ambient Light Sensor Daemon for Linux";
|
|
homepage = "https://github.com/mikhail-m1/illuminanced";
|
|
changelog = "https://github.com/mikhail-m1/illuminanced/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
dynamicgoose
|
|
];
|
|
mainProgram = "illuminanced";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|