2018-03-13 10:16:03 +00:00
|
|
|
{ stdenv, fetchFromGitHub, scsh, feh, xorg }:
|
2016-03-24 12:34:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deco";
|
|
|
|
version = "0.0.1";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebzzry";
|
|
|
|
repo = pname;
|
|
|
|
rev = "037f473ae4bdce5d3e2f76891785f0f7479cca75";
|
|
|
|
sha256 = "1fv15nc9zqbn3c51vnm50yidj5ivpi61zg55cs46x3gi2x79x43q";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/ebzzry/deco;
|
|
|
|
description = "A simple root image setter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
}
|