2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scsh, feh, xorg }:
|
2016-03-24 12:34:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deco";
|
2022-01-04 07:05:48 +00:00
|
|
|
version = "unstable-2019-04-03";
|
2016-03-24 12:34:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebzzry";
|
|
|
|
repo = pname;
|
2022-01-04 07:05:48 +00:00
|
|
|
rev = "dd8ec7905bc85d085eb2ee3bddabea451054288c";
|
|
|
|
sha256 = "sha256-/3GeNvWOCRPOYTUbodXDUxR5QVDEyx6x2Jt5PxsPdvk=";
|
2016-03-24 12:34:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${pname} $out/bin
|
|
|
|
chmod +x $out/bin/${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/bin/deco --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
|
|
|
|
substituteInPlace $out/bin/deco --replace "feh" "${feh}/bin/feh"
|
2018-03-13 10:16:03 +00:00
|
|
|
substituteInPlace $out/bin/deco --replace "xdpyinfo" "${xorg.xdpyinfo}/bin/xdpyinfo"
|
2016-03-24 12:34:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ebzzry/deco";
|
2016-03-24 12:34:01 +00:00
|
|
|
description = "A simple root image setter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
}
|