git.iko.soy/typeable/nixpkgs
on master help sign in
gup: simplify build expression
commitb52f5dba48d39a67112f95a15dd0a786959f0e52 authorTim Cuthbertson <tim@gfxmonk.net> dateSun 22 Apr 2018, 11:17 (9 years ago) parent313b5fc
2 files changed+18−30
pkgs/development/tools/build-managers/gup/build.nix−16 pkgs/development/tools/build-managers/gup/default.nix+18−14
pkgs/development/tools/build-managers/gup/build.nixdeleted−16
@@ -1,16 +0,0 @@
1−# NOTE: this file is copied from the upstream repository for this package.
2−# Please submit any changes you make here to https://github.com/timbertson/gup/
3−
4−{ stdenv, lib, python, which, pychecker ? null }:
5−{ src, version, meta ? {} }:
6−stdenv.mkDerivation {
7− inherit src meta;
8− name = "gup-${version}";
9− buildInputs = lib.remove null [ python which pychecker ];
10− SKIP_PYCHECKER = pychecker == null;
11− buildPhase = "make python";
12− installPhase = ''
13− mkdir $out
14− cp -r python/bin $out/bin
15− '';
16−}
pkgs/development/tools/build-managers/gup/default.nix+18−14
@@ -1,5 +1,5 @@
1−{ stdenv, fetchFromGitHub, lib, python, which }:
2−let
1+{ stdenv, fetchFromGitHub, lib, python, which, pychecker ? null }:
2+stdenv.mkDerivation rec {
33 version = "0.7.0";
44 src = fetchFromGitHub {
55 sha256 = "1pwnmlq2pgkkln9sgz4wlb9dqlqw83bkf105qljnlvggc21zm3pv";
@@ -7,15 +7,19 @@ let
77 repo = "gup";
88 owner = "timbertson";
99 };
10−in
11−import ./build.nix
12− { inherit stdenv lib python which; }
13− { inherit src version;
14− meta = {
15− inherit (src.meta) homepage;
16− description = "A better make, inspired by djb's redo";
17− license = stdenv.lib.licenses.lgpl2Plus;
18− maintainers = [ stdenv.lib.maintainers.timbertson ];
19− platforms = stdenv.lib.platforms.all;
20− };
21− }
10+ name = "gup-${version}";
11+ buildInputs = lib.remove null [ python which pychecker ];
12+ SKIP_PYCHECKER = pychecker == null;
13+ buildPhase = "make python";
14+ installPhase = ''
15+ mkdir $out
16+ cp -r python/bin $out/bin
17+ '';
18+ meta = {
19+ inherit (src.meta) homepage;
20+ description = "A better make, inspired by djb's redo";
21+ license = stdenv.lib.licenses.lgpl2Plus;
22+ maintainers = [ stdenv.lib.maintainers.timbertson ];
23+ platforms = stdenv.lib.platforms.all;
24+ };
25+}