nixpkgs/pkgs/misc/screensavers/xss-lock/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

24 lines
713 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, docutils, pkg-config, glib, libpthreadstubs
, libXau, libXdmcp, xcbutil }:
stdenv.mkDerivation {
name = "xss-lock-git-2018-05-31";
src = fetchFromGitHub {
owner = "xdbob";
repo = "xss-lock";
rev = "cd0b89df9bac1880ea6ea830251c6b4492d505a5";
sha256 = "040nqgfh564frvqkrkmak3x3h0yadz6kzk81jkfvd9vd20a9drh7";
};
nativeBuildInputs = [ cmake pkg-config docutils ];
buildInputs = [ glib libpthreadstubs libXau libXdmcp xcbutil ];
meta = with lib; {
description = "Use external locker (such as i3lock) as X screen saver";
license = licenses.mit;
maintainers = with maintainers; [ malyn offline ];
platforms = platforms.linux;
};
}