@@ -0,0 +1,34 @@
1+{ stdenv, fetchgit }:
2+
3+stdenv.mkDerivation {
4+ name = "cde-0.1";
5+ src = fetchgit {
6+ url = "https://github.com/pgbovine/CDE.git";
7+ sha256 = "";
8+ rev = "551e54d95eb3f8eefc698891f1b873fc4f02f360";
9+ };
10+
11+ # The build is small, so there should be no problem
12+ # running this locally. There is also a use case for
13+ # older systems, where modern binaries might not be
14+ # useful.
15+ preferLocalBuild = true;
16+
17+ patchBuild = ''
18+ sed '/install/d' $src/Makefile > $src/Makefile
19+ '';
20+
21+ installPhase = ''
22+ mkdir -p $out/bin
23+ cp cde $out/bin
24+ cp cde-exec $out/bin
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ homepage = "https://github.com/pgbovine/CDE";
29+ description = "A packaging tool for building portable packages";
30+ license = licenses.gpl3;
31+ maintainers = [ maintainers.rlupton20 ];
32+ platforms = platforms.linux;
33+ };
34+}