3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nox/default.nix
Georges Dubus ca0b0a68e8 Fixed deterministicness of fetchgit with leaveDotGit
The shebang of .git/hooks depended the git's bash, which made the result
depend of that bash's path.
2014-08-10 16:25:29 +02:00

30 lines
787 B
Nix

{ lib, pythonPackages, git, fetchgit, makeWrapper, nix }:
pythonPackages.buildPythonPackage rec {
name = "nox-0.0.1";
namePrefix = "";
src = fetchgit {
url = "git://github.com/madjar/nox.git";
rev = "49e4bb7de473ac5e446a76c292bdaefa7e20a1c6";
sha256 = "1w1b2g44lj6nbs7f2j5dz5pijhfah3fyldspfb34zcv17j2nlv0b";
leaveDotGit = true; # required by pbr
};
buildInputs = [ git pythonPackages.pbr makeWrapper ];
pythonPath =
[ pythonPackages.dogpile_cache
pythonPackages.click
];
postInstall = "wrapProgram $out/bin/nox --prefix PATH : ${nix}/bin";
meta = {
homepage = https://github.com/madjar/nox;
description = "Tools to make nix nicer to use";
maintainers = [ lib.maintainers.madjar ];
platforms = lib.platforms.all;
};
}