diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-11-11 17:52:55 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-11-11 17:52:55 -0500 |
commit | ea80c5100a43f714fc5bd5139b6839a34133c368 (patch) | |
tree | d74aa8f0f9b7aaa88c1b44c5f2ba6e7c0297c47c /derivation.nix | |
parent | org nix (diff) |
org nix cosmetic
Diffstat (limited to 'derivation.nix')
-rw-r--r-- | derivation.nix | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/derivation.nix b/derivation.nix index 3988e7c..04a3305 100644 --- a/derivation.nix +++ b/derivation.nix @@ -9,8 +9,7 @@ assert dcompiler != null; with ( with lib; let - # filter function to remove the .dub package folder from src - filterDub = name: type: let baseName = baseNameOf (toString name); in ! ( + filterDub = name: type: let baseName = baseNameOf (toString name); in ! ( # filter function to remove the .dub package folder from src type == "directory" && baseName == ".dub" ); targetOf = package: "${package.targetPath or "."}/${package.targetName or package.name}"; @@ -73,8 +72,7 @@ with ( description = package.description; } // attrs.meta or {}; } // lib.optionalAttrs (!(attrs ? version)) { - # use name from dub.json, unless pname and version are specified - name = package.name; + name = package.name; # use name from dub.json, unless pname and version are specified })); } ); @@ -82,14 +80,8 @@ mkDubDerivation rec { pname = "spine"; version = "0.11.3"; src = ./.; - nativeBuildInputs = with pkgs; [ - dub - ldc - ]; - buildInputs = with pkgs; [ - nixVersions.unstable #nixFlakes - sqlite - ]; + nativeBuildInputs = with pkgs; [ dub ldc ]; + buildInputs = with pkgs; [ nixVersions.unstable sqlite ]; meta = with pkgs.lib; { description = "A sisu like parser and document generator"; longDescription = '' |