
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
49 lines
902 B
Nix
49 lines
902 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lua5_3,
|
|
python3,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bam";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matricks";
|
|
repo = "bam";
|
|
rev = "v${version}";
|
|
sha256 = "13br735ig7lygvzyfd15fc2rdygrqm503j6xj5xkrl1r7w2wipq6";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
lua5_3
|
|
python3
|
|
];
|
|
|
|
buildPhase = "${stdenv.shell} make_unix.sh";
|
|
|
|
checkPhase = "${python3.interpreter} scripts/test.py";
|
|
|
|
strictDeps = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/share/bam"
|
|
cp -r docs examples tests "$out/share/bam"
|
|
mkdir -p "$out/bin"
|
|
cp bam "$out/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Yet another build manager";
|
|
mainProgram = "bam";
|
|
maintainers = with maintainers; [
|
|
raskin
|
|
];
|
|
platforms = platforms.linux;
|
|
license = licenses.zlib;
|
|
downloadPage = "http://matricks.github.com/bam/";
|
|
};
|
|
}
|