1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/tools/build-managers/gup/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, nix-update-source, lib, python
, which, runtimeShell, pychecker ? null }:
2018-04-22 02:17:59 +01:00
stdenv.mkDerivation rec {
2017-12-01 13:56:00 +00:00
version = "0.7.0";
src = fetchFromGitHub {
owner = "timbertson";
2018-04-22 02:31:41 +01:00
repo = "gup";
rev = "version-0.7.0";
sha256 = "1pwnmlq2pgkkln9sgz4wlb9dqlqw83bkf105qljnlvggc21zm3pv";
};
2018-04-22 02:17:59 +01:00
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
'';
2018-04-22 02:31:41 +01:00
passthru.updateScript = ''
#!${runtimeShell}
2018-04-22 02:31:41 +01:00
set -e
echo
cd ${toString ./.}
${nix-update-source}/bin/nix-update-source \
--prompt version \
--replace-attr version \
--set owner timbertson \
--set repo gup \
--set type fetchFromGitHub \
--set rev 'version-{version}' \
--modify-nix default.nix
'';
2018-04-22 02:17:59 +01:00
meta = {
inherit (src.meta) homepage;
description = "A better make, inspired by djb's redo";
license = stdenv.lib.licenses.lgpl2Plus;
maintainers = [ stdenv.lib.maintainers.timbertson ];
platforms = stdenv.lib.platforms.all;
};
}