Packages: add kame-editor and dependencies
This commit is contained in:
parent
5ddac8b95b
commit
0bfe20a736
4 changed files with 107 additions and 1 deletions
29
pkgs/kame-tools/default.nix
Normal file
29
pkgs/kame-tools/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
zip,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kame-tools";
|
||||
version = "a1fe47cc";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "beelzy";
|
||||
repo = name;
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-ETl5f8M4OJPFB7NEq2mVuMm4RhBtAbMzlrvGHD14zXw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace buildtools/make_base \
|
||||
--replace-fail "/usr/local/bin" "$out/bin"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp output/linux-x86_64/* $out/bin/
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [zip];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue