nixos-config/pkgs/gogs.nix

22 lines
510 B
Nix
Raw Normal View History

2015-10-18 12:25:54 +00:00
{ nixpkgs ? import <nixpkgs> {} }: with nixpkgs;
stdenv.mkDerivation rec {
name = "gogs-${version}";
2015-12-12 09:02:27 +00:00
version = "0.7.33";
2015-10-18 12:25:54 +00:00
src = fetchzip {
url = "https://github.com/gogits/gogs/releases/download/v${version}/linux_amd64.zip";
2015-12-12 09:02:27 +00:00
sha256 = "0y8yn9z80knnlr05i4f2vbhdyvx0s5lsy1x1hmzlyd28aa2ksppv";
2015-10-18 12:25:54 +00:00
};
buildPhase = ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath ${pam}/lib \
gogs
'';
installPhase = ''
cp -ra ./ $out/
'';
}