mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
examine: init at 1.0.0
This commit is contained in:
parent
2582629928
commit
d8b45fea9b
1 changed files with 68 additions and 0 deletions
68
pkgs/by-name/ex/examine/package.nix
Normal file
68
pkgs/by-name/ex/examine/package.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
just,
|
||||
libcosmicAppHook,
|
||||
pciutils,
|
||||
usbutils,
|
||||
util-linux,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "examine";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cosmic-utils";
|
||||
repo = "examine";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-9xYUJeAYqnDYZzjWM21HuSNDY+ZcUlTdj/g/MUH2A54=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-BcBCPkahV6+xw+K+Vk4QjwX5QI1j4hNkD9YTyL24iRA=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
just
|
||||
libcosmicAppHook
|
||||
];
|
||||
|
||||
dontUseJustBuild = true;
|
||||
dontUseJustCheck = true;
|
||||
|
||||
justFlags = [
|
||||
"--set"
|
||||
"prefix"
|
||||
(placeholder "out")
|
||||
"--set"
|
||||
"bin-src"
|
||||
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/examine"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
libcosmicAppWrapperArgs+=(--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
pciutils
|
||||
usbutils
|
||||
util-linux
|
||||
]
|
||||
})
|
||||
'';
|
||||
|
||||
env.VERGEN_GIT_SHA = finalAttrs.version;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/cosmic-utils/examine/releases/tag/${finalAttrs.version}";
|
||||
description = "System information viewer for the COSMIC Desktop";
|
||||
homepage = "https://github.com/cosmic-utils/examine";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "examine";
|
||||
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
|
||||
platforms = lib.platforms.linux;
|
||||
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue