Merge pull request #24225 from rlupton20/cde

cde: init at 0.1
This commit is contained in:
ndowens 2017-03-24 21:52:21 -05:00 committed by GitHub
commit 5f61654864
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "cde-${version}";
version = "0.1";
src = fetchFromGitHub {
owner = "pgbovine";
repo = "CDE";
sha256 = "0raiz7pczkbnzxpg7g59v7gdp1ipkwgms2vh3431snw1va1gjzmk";
rev = "v${version}";
};
# The build is small, so there should be no problem
# running this locally. There is also a use case for
# older systems, where modern binaries might not be
# useful.
preferLocalBuild = true;
patchBuild = ''
sed '/install/d' $src/Makefile > $src/Makefile
'';
installPhase = ''
mkdir -p $out/bin
cp cde $out/bin
cp cde-exec $out/bin
'';
meta = with stdenv.lib; {
homepage = https://github.com/pgbovine/CDE;
description = "A packaging tool for building portable packages";
license = licenses.gpl3;
maintainers = [ maintainers.rlupton20 ];
platforms = platforms.linux;
};
}

View File

@ -740,6 +740,8 @@ with pkgs;
catclock = callPackage ../applications/misc/catclock { };
cde = callPackage ../tools/package-management/cde { };
cdemu-daemon = callPackage ../misc/emulators/cdemu/daemon.nix { };
cdemu-client = callPackage ../misc/emulators/cdemu/client.nix { };