uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/tools/misc/cpufetch/default.nix
Normal file
40
pkgs/tools/misc/cpufetch/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cpufetch";
|
||||
version = "1.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Dr-Noob";
|
||||
repo = "cpufetch";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-bhw7+z4/50MrC5WyexHhtzmqnovwiA9X6Q2TcznDYZM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
install -Dm755 cpufetch $out/bin/cpufetch
|
||||
install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
|
||||
installManPage cpufetch.1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simplistic yet fancy CPU architecture fetching tool";
|
||||
license = licenses.gpl2Only;
|
||||
homepage = "https://github.com/Dr-Noob/cpufetch";
|
||||
changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
|
||||
maintainers = with maintainers; [ devhell ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue