571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
832 B
Nix
28 lines
832 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, docutils, pkg-config, glib, libpthreadstubs
|
|
, libXau, libXdmcp, xcbutil, nixosTests }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "xss-lock";
|
|
version = "unstable-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 ];
|
|
|
|
passthru.tests = { inherit (nixosTests) xss-lock; };
|
|
|
|
meta = with lib; {
|
|
description = "Use external locker (such as i3lock) as X screen saver";
|
|
license = licenses.mit;
|
|
mainProgram = "xss-lock";
|
|
maintainers = with maintainers; [ malyn offline ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|