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}";
2016-05-31 09:22:48 +00:00
version = "0.9.13";
2015-10-18 12:25:54 +00:00
src = fetchzip {
url = "https://github.com/gogits/gogs/releases/download/v${version}/linux_amd64.zip";
2016-05-31 09:22:48 +00:00
sha256 = "0a645213np48y3y9acs8bjcsv3qi863n3q1a5w18ghj8c1i6249f";
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/
'';
}