mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +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.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, libX11, imlib2, pkg-config, fetchpatch
|
|
, enableXinerama ? true, libXinerama
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.0.2";
|
|
pname = "setroot";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ttzhou";
|
|
repo = "setroot";
|
|
rev = "v${version}";
|
|
sha256 = "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/ttzhou/setroot/commit/d8ff8edd7d7594d276d741186bf9ccf0bce30277.patch";
|
|
sha256 = "sha256-e0iMSpiOmTOpQnp599fjH2UCPU4Oq1VKXcVypVoR9hw=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libX11 imlib2 ]
|
|
++ lib.optionals enableXinerama [ libXinerama ];
|
|
|
|
buildFlags = [ (if enableXinerama then "xinerama=1" else "xinerama=0") ] ;
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple X background setter inspired by imlibsetroot and feh";
|
|
homepage = "https://github.com/ttzhou/setroot";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.vyp ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "setroot";
|
|
};
|
|
}
|