nixpkgs/pkgs/applications/misc/deco/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
946 B
Nix
Raw Normal View History

{ 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
'';
meta = with lib; {
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;
}