11 stdenv.mkDerivation (finalAttrs: {
16 url = "http://gondor.apana.org.au/~herbert/dash/files/dash-${finalAttrs.version}.tar.gz";
17 hash = "sha256-akdKxG6LCzKRbExg32lMggWNMpfYs4W3RQgDDKSo8oo=";
22 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isStatic [ pkg-config ];
24 depsBuildBuild = [ buildPackages.stdenv.cc ];
25 buildInputs = [ libedit ];
27 configureFlags = [ "--with-libedit" ];
28 preConfigure = lib.optional stdenv.hostPlatform.isStatic ''
29 export LIBS="$(''${PKG_CONFIG:-pkg-config} --libs --static libedit)"
32 enableParallelBuilding = true;
35 shellPath = "/bin/dash";
37 "execute-simple-command" = runCommand "dash-execute-simple-command" { } ''
39 ${lib.getExe dash} -c 'echo "Hello World!" > $out/success'
41 grep -q "Hello World" $out/success
47 homepage = "http://gondor.apana.org.au/~herbert/dash/";
48 description = "POSIX-compliant implementation of /bin/sh that aims to be as small as possible";
49 platforms = platforms.unix;
50 license = with licenses; [ bsd3 gpl2Plus ];