Loading pkgs/applications/radio/gnuradio/3.8.nix +4 −9 Original line number Diff line number Diff line Loading @@ -40,11 +40,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.8"; minor = "5"; patch = "0"; } , version ? "3.8.5.0" }: let Loading Loading @@ -214,7 +210,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -222,13 +218,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading pkgs/applications/radio/gnuradio/3.9.nix +4 −9 Original line number Diff line number Diff line Loading @@ -42,11 +42,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.9"; minor = "8"; patch = "0"; } , version ? "3.9.8.0" }: let Loading Loading @@ -250,7 +246,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -258,13 +254,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading pkgs/applications/radio/gnuradio/default.nix +4 −9 Original line number Diff line number Diff line Loading @@ -45,11 +45,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.10"; minor = "7"; patch = "0"; } , version ? "3.10.7.0" }: let Loading Loading @@ -271,7 +267,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -279,13 +275,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading pkgs/applications/radio/gnuradio/shared.nix +15 −12 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ , removeReferencesTo , featuresInfo , features , versionAttr , version , sourceSha256 # If overridden. No need to set default values, as they are given defaults in # the main expressions Loading @@ -13,10 +13,21 @@ , fetchFromGitHub }: rec { version = builtins.concatStringsSep "." ( lib.attrVals [ "major" "minor" "patch" ] versionAttr let # Check if a feature is enabled, while defaulting to true if feat is not # specified. hasFeature = feat: ( if builtins.hasAttr feat features then features.${feat} else true ); versionAttr = { major = builtins.concatStringsSep "." (lib.take 2 (lib.splitVersion version)); minor = builtins.elemAt (lib.splitVersion version) 2; patch = builtins.elemAt (lib.splitVersion version) 3; }; in { src = if overrideSrc != {} then overrideSrc else Loading @@ -27,14 +38,6 @@ rec { sha256 = sourceSha256; } ; # Check if a feature is enabled, while defaulting to true if feat is not # specified. hasFeature = feat: ( if builtins.hasAttr feat features then features.${feat} else true ); nativeBuildInputs = lib.flatten (lib.mapAttrsToList ( feat: info: ( lib.optionals (hasFeature feat) ( Loading Loading
pkgs/applications/radio/gnuradio/3.8.nix +4 −9 Original line number Diff line number Diff line Loading @@ -40,11 +40,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.8"; minor = "5"; patch = "0"; } , version ? "3.8.5.0" }: let Loading Loading @@ -214,7 +210,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -222,13 +218,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading
pkgs/applications/radio/gnuradio/3.9.nix +4 −9 Original line number Diff line number Diff line Loading @@ -42,11 +42,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.9"; minor = "8"; patch = "0"; } , version ? "3.9.8.0" }: let Loading Loading @@ -250,7 +246,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -258,13 +254,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading
pkgs/applications/radio/gnuradio/default.nix +4 −9 Original line number Diff line number Diff line Loading @@ -45,11 +45,7 @@ # If one wishes to use a different src or name for a very custom build , overrideSrc ? {} , pname ? "gnuradio" , versionAttr ? { major = "3.10"; minor = "7"; patch = "0"; } , version ? "3.10.7.0" }: let Loading Loading @@ -271,7 +267,7 @@ let removeReferencesTo featuresInfo features versionAttr version sourceSha256 overrideSrc fetchFromGitHub Loading @@ -279,13 +275,12 @@ let qt = qt5; gtk = gtk3; }); inherit (shared) hasFeature; # function inherit (shared.passthru) hasFeature; # function in stdenv.mkDerivation { inherit pname; inherit pname version; inherit (shared) version src nativeBuildInputs buildInputs Loading
pkgs/applications/radio/gnuradio/shared.nix +15 −12 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ , removeReferencesTo , featuresInfo , features , versionAttr , version , sourceSha256 # If overridden. No need to set default values, as they are given defaults in # the main expressions Loading @@ -13,10 +13,21 @@ , fetchFromGitHub }: rec { version = builtins.concatStringsSep "." ( lib.attrVals [ "major" "minor" "patch" ] versionAttr let # Check if a feature is enabled, while defaulting to true if feat is not # specified. hasFeature = feat: ( if builtins.hasAttr feat features then features.${feat} else true ); versionAttr = { major = builtins.concatStringsSep "." (lib.take 2 (lib.splitVersion version)); minor = builtins.elemAt (lib.splitVersion version) 2; patch = builtins.elemAt (lib.splitVersion version) 3; }; in { src = if overrideSrc != {} then overrideSrc else Loading @@ -27,14 +38,6 @@ rec { sha256 = sourceSha256; } ; # Check if a feature is enabled, while defaulting to true if feat is not # specified. hasFeature = feat: ( if builtins.hasAttr feat features then features.${feat} else true ); nativeBuildInputs = lib.flatten (lib.mapAttrsToList ( feat: info: ( lib.optionals (hasFeature feat) ( Loading