aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr/default.nix73
1 files changed, 73 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr/default.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr/default.nix
new file mode 100644
index 000000000000..c62fb0f2515d
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/redo-apenwarr/default.nix
@@ -0,0 +1,73 @@
+{ stdenv, lib, python3, fetchFromGitHub, which, findutils, coreutils
+, perl, installShellFiles
+, doCheck ? true
+}: stdenv.mkDerivation rec {
+
+ pname = "redo-apenwarr";
+ version = "0.42c";
+
+ src = fetchFromGitHub rec {
+ owner = "apenwarr";
+ repo = "redo";
+ rev = "${repo}-${version}";
+ sha256 = "0kc2gag1n5583195gs38gjm8mb7in9y70c07fxibsay19pvvb8iw";
+ };
+
+ postPatch = ''
+
+ patchShebangs minimal/do
+
+ '' + lib.optionalString doCheck ''
+ unset CC CXX
+
+ substituteInPlace minimal/do.test \
+ --replace "/bin/pwd" "${coreutils}/bin/pwd"
+
+ substituteInPlace t/105-sympath/all.do \
+ --replace "/bin/pwd" "${coreutils}/bin/pwd"
+
+ substituteInPlace t/all.do \
+ --replace "/bin/ls" "ls"
+
+ substituteInPlace t/110-compile/hello.o.do \
+ --replace "/usr/include" "${stdenv.lib.getDev stdenv.cc.libc}/include"
+
+ substituteInPlace t/200-shell/nonshelltest.do \
+ --replace "/usr/bin/env perl" "${perl}/bin/perl"
+
+ '';
+
+ inherit doCheck;
+
+ checkTarget = "test";
+
+ outputs = [ "out" "man" ];
+
+ installFlags = [
+ "PREFIX=$(out)"
+ "DESTDIR=/"
+ ];
+
+ nativeBuildInputs = [
+ python3
+ (with python3.pkgs; [ beautifulsoup4 markdown ])
+ which
+ findutils
+ installShellFiles
+ ];
+
+ postInstall = ''
+ installShellCompletion --bash contrib/bash_completion.d/redo
+ '';
+
+ meta = with lib; {
+ description = "Smaller, easier, more powerful, and more reliable than make. An implementation of djb's redo";
+ homepage = "https://github.com/apenwarr/redo";
+ maintainers = with maintainers; [
+ andrewchambers
+ ck3d
+ ];
+ license = licenses.asl20;
+ platforms = python3.meta.platforms;
+ };
+}