From ea80c5100a43f714fc5bd5139b6839a34133c368 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 11 Nov 2022 17:52:55 -0500 Subject: org nix cosmetic --- org/config_nix.org | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'org') diff --git a/org/config_nix.org b/org/config_nix.org index 92576e0..4a637a4 100644 --- a/org/config_nix.org +++ b/org/config_nix.org @@ -561,12 +561,8 @@ postInstall: echo "built:" $out/bin/spine -v ''; - nativeBuildInputs = with pkgs; [ - ldc dub - ]; - buildInputs = with pkgs; [ - sqlite - ]; + nativeBuildInputs = with pkgs; [ ldc dub ]; + buildInputs = with pkgs; [ sqlite ]; }; packages.x86_64-linux.default = self.packages.x86_64-linux.spine; }; @@ -1024,8 +1020,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}"; @@ -1088,8 +1083,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 })); } ); @@ -1097,14 +1091,8 @@ mkDubDerivation rec { pname = "spine"; version = "<>"; 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 = '' @@ -1564,8 +1552,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 })); } ); -- cgit v1.2.3