gup: simplify build expression
This commit is contained in:
parent
313b5fce7b
commit
b52f5dba48
@ -1,16 +0,0 @@
|
|||||||
# NOTE: this file is copied from the upstream repository for this package.
|
|
||||||
# Please submit any changes you make here to https://github.com/timbertson/gup/
|
|
||||||
|
|
||||||
{ stdenv, lib, python, which, pychecker ? null }:
|
|
||||||
{ src, version, meta ? {} }:
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit src meta;
|
|
||||||
name = "gup-${version}";
|
|
||||||
buildInputs = lib.remove null [ python which pychecker ];
|
|
||||||
SKIP_PYCHECKER = pychecker == null;
|
|
||||||
buildPhase = "make python";
|
|
||||||
installPhase = ''
|
|
||||||
mkdir $out
|
|
||||||
cp -r python/bin $out/bin
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, lib, python, which }:
|
{ stdenv, fetchFromGitHub, lib, python, which, pychecker ? null }:
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "0.7.0";
|
version = "0.7.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "1pwnmlq2pgkkln9sgz4wlb9dqlqw83bkf105qljnlvggc21zm3pv";
|
sha256 = "1pwnmlq2pgkkln9sgz4wlb9dqlqw83bkf105qljnlvggc21zm3pv";
|
||||||
@ -7,10 +7,14 @@ let
|
|||||||
repo = "gup";
|
repo = "gup";
|
||||||
owner = "timbertson";
|
owner = "timbertson";
|
||||||
};
|
};
|
||||||
in
|
name = "gup-${version}";
|
||||||
import ./build.nix
|
buildInputs = lib.remove null [ python which pychecker ];
|
||||||
{ inherit stdenv lib python which; }
|
SKIP_PYCHECKER = pychecker == null;
|
||||||
{ inherit src version;
|
buildPhase = "make python";
|
||||||
|
installPhase = ''
|
||||||
|
mkdir $out
|
||||||
|
cp -r python/bin $out/bin
|
||||||
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "A better make, inspired by djb's redo";
|
description = "A better make, inspired by djb's redo";
|
||||||
@ -18,4 +22,4 @@ import ./build.nix
|
|||||||
maintainers = [ stdenv.lib.maintainers.timbertson ];
|
maintainers = [ stdenv.lib.maintainers.timbertson ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user