mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nightlight: init
Nightlight cargo hash added. suggested changes sri hash change, remove unnecessary wrapper
This commit is contained in:
parent
91f3d1507d
commit
c53f219b53
1 changed files with 39 additions and 0 deletions
39
pkgs/by-name/ni/nightlight/package.nix
Normal file
39
pkgs/by-name/ni/nightlight/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "nightlight";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "smudge";
|
||||
repo = "nightlight";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-NOphjrqsnO5693Zw3NkX3c74I3PdJ8W6sxYwOEJ1yCU=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
|
||||
cargoHash = "sha256-v5Oo1AxwvJs66l9CtVjO+WfwgsM16zSLT1SSnDi1kSo=";
|
||||
|
||||
checkFlags = [
|
||||
"--skip=repl"
|
||||
"--skip=printer::tests"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/smudge/nightlight";
|
||||
description = "CLI tool for configuring Night Shift macOS";
|
||||
maintainers = with lib.maintainers; [ aspauldingcode ];
|
||||
platforms = lib.platforms.darwin;
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "nightlight";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue