From 90a3c8d35884de08944ef901a8de57e1ae619b66 Mon Sep 17 00:00:00 2001 From: "Rommel M. Martinez" Date: Thu, 24 Mar 2016 20:34:01 +0800 Subject: [PATCH] deco: init at 0.0.1 --- pkgs/applications/misc/deco/default.nix | 36 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/misc/deco/default.nix diff --git a/pkgs/applications/misc/deco/default.nix b/pkgs/applications/misc/deco/default.nix new file mode 100644 index 000000000000..170018dc972d --- /dev/null +++ b/pkgs/applications/misc/deco/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, scsh, feh, xlibs }: + +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" + substituteInPlace $out/bin/deco --replace "xdpyinfo" "${xlibs.xdpyinfo}/bin/xdpyinfo" + ''; + + 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; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 26175c4e6d2d..813fb3444987 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2041,6 +2041,8 @@ let darkice = callPackage ../tools/audio/darkice { }; + deco = callPackage ../applications/misc/deco { }; + icoutils = callPackage ../tools/graphics/icoutils { }; idutils = callPackage ../tools/misc/idutils { };