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
42
pkgs/misc/screensavers/xlockmore/default.nix
Normal file
42
pkgs/misc/screensavers/xlockmore/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, lib, fetchurl, pam ? null, libX11, libXext, libXinerama
|
||||
, libXdmcp, libXt, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xlockmore";
|
||||
version = "5.69";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://sillycycle.com/xlock/xlockmore-${version}.tar.xz";
|
||||
sha256 = "sha256-6pJlTAASJoSHZaJRpzvLxHPM7xe3IcwY1TYfWdvW07k=";
|
||||
curlOpts = "--user-agent 'Mozilla/5.0'";
|
||||
};
|
||||
|
||||
# Optionally, it can use GTK.
|
||||
buildInputs = [ pam libX11 libXext.dev libXinerama libXdmcp libXt ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
# Don't try to install `xlock' setuid. Password authentication works
|
||||
# fine via PAM without super user privileges.
|
||||
configureFlags =
|
||||
[ "--disable-setuid"
|
||||
] ++ (lib.optional (pam != null) "--enable-pam");
|
||||
|
||||
postPatch =
|
||||
let makePath = p: lib.concatMapStringsSep " " (x: x + "/" + p) buildInputs;
|
||||
inputs = "${makePath "lib"} ${makePath "include"}";
|
||||
in ''
|
||||
sed -i 's,\(for ac_dir in\),\1 ${inputs},' configure.ac
|
||||
sed -i 's,/usr/,/no-such-dir/,g' configure.ac
|
||||
configureFlags+=" --enable-appdefaultdir=$out/share/X11/app-defaults"
|
||||
'';
|
||||
|
||||
hardeningDisable = [ "format" ]; # no build output otherwise
|
||||
|
||||
meta = with lib; {
|
||||
description = "Screen locker for the X Window System";
|
||||
homepage = "http://sillycycle.com/xlockmore.html";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue