treewide: remove platform assertions

linux: readd assertion
This commit is contained in:
Matthew Bauer
2018-05-03 13:09:20 -05:00
parent 3216cf6cdf
commit 143978a477
65 changed files with 43 additions and 158 deletions
@@ -1,15 +1,9 @@
{stdenv, git, less, fetchFromGitHub, makeWrapper
# utillinuxMinimal is included because we need the column command
, utillinux ? null
, utillinux
}:
assert stdenv.isLinux -> utillinux != null;
let
binpath = stdenv.lib.makeBinPath
([ git less ]
++ stdenv.lib.optional (utillinux != null) utillinux);
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "git-recent-${version}";
version = "1.0.4";
@@ -28,7 +22,7 @@ in stdenv.mkDerivation rec {
mkdir -p $out/bin
cp git-recent $out/bin
wrapProgram $out/bin/git-recent \
--prefix PATH : "${binpath}"
--prefix PATH : "${stdenv.lib.makeBinPath [ git less utillinux ]}"
'';
meta = with stdenv.lib; {