]> git.scottworley.com Git - nix-pin-deps/blame - default.nix
nix show-derivation → nix derivation show
[nix-pin-deps] / default.nix
CommitLineData
ac783e58
SW
1{ pkgs ? import <nixpkgs> { }, lint ? false }:
2pkgs.python3Packages.callPackage
3({ lib, buildPythonPackage, autopep8, mypy, pylint, }:
4 buildPythonPackage rec {
5 pname = "nix-pin-deps";
6 version = "1.0.0";
7 src = lib.cleanSource ./.;
9a38ce23 8 nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
ac783e58
SW
9 doCheck = true;
10 checkPhase = ''
11 ./test.sh ${lib.optionalString lint "lint"}
12 '';
cf8e9f60
SW
13 meta = {
14 description = "GC-pin dependencies of a partially-built derivation";
15 homepage = "https://git.scottworley.com/nix-pin-deps";
16 license = pkgs.lib.licenses.gpl3;
17 maintainers = with pkgs.lib.maintainers; [ chkno ];
18 };
ac783e58 19 }) { }