2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-11-11 17:23:02 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, imlib2
|
|
|
|
, libX11
|
|
|
|
, libXinerama
|
|
|
|
}:
|
2013-08-01 20:12:44 +02:00
|
|
|
|
2015-02-21 02:49:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hsetroot";
|
2020-11-11 17:23:02 +01:00
|
|
|
version = "1.0.5";
|
2013-08-01 20:12:44 +02:00
|
|
|
|
2020-11-11 17:23:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "himdel";
|
|
|
|
repo = "hsetroot";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722";
|
2013-08-01 20:12:44 +02:00
|
|
|
};
|
|
|
|
|
2020-11-11 17:23:02 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
imlib2
|
|
|
|
libX11
|
|
|
|
libXinerama
|
|
|
|
];
|
2015-02-21 02:49:33 +01:00
|
|
|
|
2021-05-16 12:20:21 +02:00
|
|
|
postPatch = lib.optionalString (!stdenv.cc.isGNU) ''
|
|
|
|
sed -i -e '/--no-as-needed/d' Makefile
|
|
|
|
'';
|
|
|
|
|
2020-11-11 17:23:02 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2015-02-21 02:49:33 +01:00
|
|
|
|
2020-11-11 17:23:02 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
'';
|
2013-08-01 20:12:44 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Allows you to compose wallpapers ('root pixmaps') for X";
|
2020-11-11 17:23:02 +01:00
|
|
|
homepage = "https://github.com/himdel/hsetroot";
|
2015-02-21 02:49:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2023-11-28 19:52:47 +01:00
|
|
|
maintainers = with maintainers; [ shamilton ];
|
2015-02-21 02:49:33 +01:00
|
|
|
platforms = platforms.unix;
|
2013-08-01 20:12:44 +02:00
|
|
|
};
|
|
|
|
}
|