nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09-alpha 28 lines 907 B view raw
1{ stdenv, buildPackages, autoreconfHook, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "dash-0.5.11.1"; 5 6 src = fetchurl { 7 url = "http://gondor.apana.org.au/~herbert/dash/files/${name}.tar.gz"; 8 sha256 = "048n1rbw3v1ffzsw5mkc6zzvvf1csq7pcri7jraaqag38vqq3j3k"; 9 }; 10 11 hardeningDisable = [ "format" ]; 12 13 # Temporary fix until a proper one is accepted upstream 14 patches = stdenv.lib.optional stdenv.isDarwin ./0001-fix-dirent64-et-al-on-darwin.patch; 15 depsBuildBuild = [ buildPackages.stdenv.cc ]; 16 nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook; 17 18 meta = with stdenv.lib; { 19 homepage = "http://gondor.apana.org.au/~herbert/dash/"; 20 description = "A POSIX-compliant implementation of /bin/sh that aims to be as small as possible"; 21 platforms = platforms.unix; 22 license = with licenses; [ bsd3 gpl2 ]; 23 }; 24 25 passthru = { 26 shellPath = "/bin/dash"; 27 }; 28}