53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{stdenv, fetchFromGitHub}: stdenv.mkDerivation rec {
|
|
name = "service1";
|
|
|
|
#propagatedBuildInputs = [python26Packages.setuptools];
|
|
#nativeBuildInputs = [ cacert ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bommels05";
|
|
repo = "CraftTweakerGUI";
|
|
rev = "a1ea013754e201e98c3930d65d03f8fb5dcd66f3";
|
|
hash = "";
|
|
leaveDotGit = true;
|
|
|
|
postFetch = ''
|
|
echo test!
|
|
cd $out
|
|
rm -r ./*
|
|
git clone https://github.com/mdn/kuma.git --progress
|
|
cd kuma
|
|
git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress
|
|
sed -i 's#git://#https://#g' .gitmodules
|
|
git submodule update --init --progress
|
|
sed -i 's#git://#https://#g' ./vendor/.gitmodules
|
|
git submodule update --init --recursive --progress
|
|
'';
|
|
};
|
|
|
|
#outputHashMode = "recursive";
|
|
#outputHashAlgo = "sha256";
|
|
#outputHash = "";
|
|
|
|
#dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontFixup = true;
|
|
|
|
#buildPhase = ''
|
|
# export NIX_SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt"
|
|
# ${git}/bin/git clone https://github.com/mdn/kuma.git --progress
|
|
# cd kuma
|
|
# ${git}/bin/git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress
|
|
# sed -i 's#git://#https://#g' .gitmodules
|
|
# ${git}/bin/git submodule update --init --progress
|
|
# sed -i 's#git://#https://#g' ./vendor/.gitmodules
|
|
# ${git}/bin/git submodule update --init --recursive --progress
|
|
#'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
cp -r ./ $out/
|
|
'';
|
|
|
|
}
|