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
39
pkgs/misc/screensavers/slock/default.nix
Normal file
39
pkgs/misc/screensavers/slock/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, writeText
|
||||
, xorgproto, libX11, libXext, libXrandr
|
||||
# default header can be obtained from
|
||||
# https://git.suckless.org/slock/tree/config.def.h
|
||||
, conf ? null }:
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "slock";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.suckless.org/tools/slock-${version}.tar.gz";
|
||||
sha256 = "0sif752303dg33f14k6pgwq2jp1hjyhqv6x4sy3sj281qvdljf5m";
|
||||
};
|
||||
|
||||
buildInputs = [ xorgproto libX11 libXext libXrandr ];
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
postPatch = "sed -i '/chmod u+s/d' Makefile";
|
||||
|
||||
preBuild = optionalString (conf != null) ''
|
||||
cp ${writeText "config.def.h" conf} config.def.h
|
||||
'';
|
||||
|
||||
makeFlags = [ "CC:=$(CC)" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://tools.suckless.org/slock";
|
||||
description = "Simple X display locker";
|
||||
longDescription = ''
|
||||
Simple X display locker. This is the simplest X screen locker.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ astsmtl ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue