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
38
pkgs/tools/misc/hddtemp/default.nix
Normal file
38
pkgs/tools/misc/hddtemp/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
let
|
||||
db = fetchurl {
|
||||
url = "mirror://savannah/hddtemp/hddtemp.db";
|
||||
sha256 = "1fr6qgns6qv7cr40lic5yqwkkc7yjmmgx8j0z6d93csg3smzhhya";
|
||||
};
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hddtemp";
|
||||
version = "0.3-beta15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/hddtemp/hddtemp-${version}.tar.bz2";
|
||||
sha256 = "sha256-YYVBWEBUCT1TvootnoHJcXTzDwCvkcuHAKl+RC1571s=";
|
||||
};
|
||||
|
||||
# from Gentoo
|
||||
patches = [ ./byteswap.patch ./dontwake.patch ./execinfo.patch ./satacmds.patch ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-db-path=${placeholder "out"}/share/${pname}/hddtemp.db"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm444 ${db} $out/share/${pname}/hddtemp.db
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for displaying hard disk temperature";
|
||||
homepage = "https://savannah.nongnu.org/projects/hddtemp/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue