summary refs log tree commit diff
path: root/pkgs/tools/misc/abduco
diff options
context:
space:
mode:
authorLuke Clifton <ltclifton@gmail.com>2014-07-23 20:49:43 +0800
committerLuke Clifton <ltclifton@gmail.com>2014-07-23 21:52:22 +0800
commit50c63f9b320a7016a670580dc5cbdc0bc0864138 (patch)
treeb942150520f8428e38b5ac24a867ea71772c7d90 /pkgs/tools/misc/abduco
parentee3db692e67dc81e58b31b6fec410dd85fd4efde (diff)
downloadnixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar.gz
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar.bz2
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar.lz
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar.xz
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.tar.zst
nixpkgs-50c63f9b320a7016a670580dc5cbdc0bc0864138.zip
Added abduco
Diffstat (limited to 'pkgs/tools/misc/abduco')
-rw-r--r--pkgs/tools/misc/abduco/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/abduco/default.nix b/pkgs/tools/misc/abduco/default.nix
new file mode 100644
index 00000000000..772c0b982a7
--- /dev/null
+++ b/pkgs/tools/misc/abduco/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, writeText, conf? null}:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+    name = "abduco-0.1";
+
+    meta = {
+        homepage = http://brain-dump.org/projects/abduco;
+        license = "bsd";
+        description = "Allows programs to be run independently from its controlling terminal";
+        platforms = with platforms; linux;
+    };
+
+    src = fetchurl {
+        url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz";
+        sha256 = "b4ef297cb7cc81170dc7edf75385cb1c55e024a52f90c1dd0bc0e9862e6f39b5";
+    };
+
+    configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
+    preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
+
+    buildInputs = [];
+
+    installPhase = ''
+      make PREFIX=$out install
+    '';
+}