From f7567f8717263036c267bd27095de69069d403ca Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Sat, 17 Sep 2011 17:40:07 +0000 Subject: [PATCH] misc/screensavers/slock: New nixpkg. svn path=/nixpkgs/trunk/; revision=29326 --- pkgs/misc/screensavers/slock/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/misc/screensavers/slock/default.nix diff --git a/pkgs/misc/screensavers/slock/default.nix b/pkgs/misc/screensavers/slock/default.nix new file mode 100644 index 000000000000..acd8aa699053 --- /dev/null +++ b/pkgs/misc/screensavers/slock/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, xproto, libX11, libXext }: +stdenv.mkDerivation rec { + name = "slock-0.9"; + src = fetchurl { + url = "http://dl.suckless.org/tools/${name}.tar.gz"; + sha256 = "1gfp2ic2i63yz8wrf5cqzv9g422j9qs249y7g4chq0brpcybgpc9"; + }; + buildInputs = [ xproto libX11 libXext ]; + installFlags = "DESTDIR=\${out} PREFIX="; + meta = { + homepage = http://tools.suckless.org/slock; + description = "Simple X display locker"; + longDescription = '' + Simple X display locker. This is the simplest X screen locker. + ''; + license = "bsd"; + maintainers = with stdenv.lib.maintainers; [ astsmtl ]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8344f6822157..d6370faae676 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8360,6 +8360,8 @@ let saneFrontends = callPackage ../misc/sane-front { }; + slock = callPackage ../misc/screensavers/slock { }; + sourceAndTags = import ../misc/source-and-tags { inherit pkgs stdenv unzip lib ctags; hasktags = haskellPackages.myhasktags;