treewide: remove platform assertions
linux: readd assertion
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user