mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
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.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xautolock";
|
|
version = "2.2-7-ga23dd5c";
|
|
|
|
# This repository contains xautolock-2.2 plus various useful patches that
|
|
# were collected from Debian, etc.
|
|
src = fetchFromGitHub {
|
|
owner = "peti";
|
|
repo = "xautolock";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-T2zAbRqSTxRp9u6EdZmIZfVxaGveeZkJgjp1DWgORoI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ imake gccmakedep ];
|
|
buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
|
|
|
|
makeFlags = [
|
|
"BINDIR=$(out)/bin"
|
|
"MANPATH=$(out)/share/man"
|
|
];
|
|
|
|
installTargets = [ "install" "install.man" ];
|
|
|
|
passthru.tests = { inherit (nixosTests) xautolock; };
|
|
|
|
meta = with lib; {
|
|
description = "Launch a given program when your X session has been idle for a given time";
|
|
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
|
|
maintainers = with maintainers; [ peti ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2Only;
|
|
mainProgram = "xautolock";
|
|
};
|
|
})
|