Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkgconfig,
|
|
libtool, check, bison, git, gperf,
|
|
perl, texinfo, help2man, gettext, ncurses
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dgsh-unstable";
|
|
version = "2017-02-05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dspinellis";
|
|
repo = "dgsh";
|
|
rev = "bc4fc2e8009c069ee4df5140c32a2fc15d0acdec";
|
|
sha256 = "0k3hmnarz56wphw45mabn5zcc427l5p77jldh1qqy89pxqy1wnql";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [ ./glibc-2.26.patch ];
|
|
|
|
nativeBuildInputs = [ autoconf automake pkgconfig libtool check
|
|
bison git gettext gperf perl texinfo help2man ncurses
|
|
];
|
|
|
|
configurePhase = ''
|
|
cp -r ./unix-tools/coreutils/gnulib gnulib
|
|
perl -pi -e \
|
|
's#./bootstrap #./bootstrap --no-bootstrap-sync --skip-po --no-git --gnulib-srcdir='$PWD/gnulib' #g' \
|
|
unix-tools/Makefile
|
|
find . -name \*.diff | xargs rm -f
|
|
rm -rf unix-tools/*/gnulib
|
|
patchShebangs unix-tools/diffutils/man/help2man
|
|
export RSYNC=true # set to rsync binary, eventhough it is not used.
|
|
make PREFIX=$out config
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "The Directed Graph Shell";
|
|
homepage = "http://www.dmst.aueb.gr/dds/sw/dgsh";
|
|
license = with licenses; asl20;
|
|
maintainers = with maintainers; [ vrthra ];
|
|
platforms = with platforms; all;
|
|
};
|
|
}
|