14 rev = "e4675e38ab54942e351c7686e40fabec822120b9";
15 sha256 = "1wm24p6pkxl1d7hrvf4ph6mwzawvqi22c60z9xzndn5xfyr4v0yr";
20 version = "0.2-${substring 0 7 rev}";
22 src = fetchFromGitHub {
28 nativeBuildInputs = [ makeWrapper ];
33 install -Dm0755 nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi
35 makeWrapper ${perl.withPackages(p: [ p.DBDSQLite p.Plack p.Starman nix.perl-bindings ])}/bin/starman $out/bin/nix-serve \
36 --prefix PATH : "${makeBinPath [ bzip2 nix ]}" \
37 --add-flags $out/libexec/nix-serve/nix-serve.psgi
41 nix-serve = nixosTests.nix-serve;
42 nix-serve-ssh = nixosTests.nix-serve-ssh;
46 homepage = "https://github.com/edolstra/nix-serve";
47 description = "A utility for sharing a Nix store as a binary cache";
48 maintainers = [ maintainers.eelco ];
49 license = licenses.lgpl21;
50 platforms = nix.meta.platforms;