default.txt 432 B

123456789101112131415161718192021222324
  1. { stdenv, foo, bar ? false, ... }:
  2. /*
  3. * foo
  4. */
  5. let
  6. a = 1; # just a comment
  7. b = null;
  8. c = toString 10;
  9. in stdenv.mkDerivation rec {
  10. name = "foo-${version}";
  11. version = "1.3";
  12. configureFlags = [ "--with-foo2" ] ++ stdenv.lib.optional bar "--with-foo=${ with stdenv.lib; foo }"
  13. postInstall = ''
  14. ${ if true then "--${test}" else false }
  15. '';
  16. meta = with stdenv.lib; {
  17. homepage = https://nixos.org;
  18. };
  19. }