bitscope: refactored to pass nixpkgs-lint
The linter (nixpkgs-lint) was not able to find the bitscope packages
because `recurseIntoAttrs` was not applied to the suite's set.
The name supplied to `buildFHSUserEnv` produces a binary that
corresponds to the binary names in the deb packages (e.g.: bitscope-dso,
bitscope-chart, bitscope-logic, etc), however; this name does not
constitute a valid nixpkgs name. Valid nixpkgs names satisfy the
`/(.*)(-[0-9].*)$/` pattern, therefore a valid name is merged into the
derivation produced by `buildFHSUserEnv`.
commitb986078593af4108371c210ce0106b6b3e82ee20
authorDavid Asabina <vid@bina.me>
dateSat 13 Jan 2018, 13:38 (9 years ago)
parent3538492
pkgs/applications/science/electronics/bitscope/common.nix+6−3
@@ -9,7 +9,7 @@
99, makeWrapper
1010, pango
1111, stdenv
12−, writeScriptBin
12+, writeTextFile
1313, xorg
1414}:
1515
@@ -60,8 +60,11 @@ let
6060 ${(wrapBinary libs) attrs.toolName}
6161 '';
6262 });
63+ fhs = target: buildFHSUserEnv {
64+ inherit (pkg) name;
65+ runScript = target;
66+ };
6367in buildFHSUserEnv {
6468 name = attrs.toolName;
65− meta = pkg.meta;
6669 runScript = "${pkg.outPath}/bin/${attrs.toolName}";
67−}
70+} // { inherit (pkg) meta name; }
pkgs/applications/science/electronics/bitscope/packages.nix+1−1
@@ -88,7 +88,7 @@ in {
8888
8989 meta = {
9090 description = "Mixed signal logic timing and serial protocol analysis software for BitScope";
91− home = "http://bitscope.com/software/logic/";
91+ homepage = "http://bitscope.com/software/logic/";
9292 };
9393
9494 src = fetchurl {
pkgs/top-level/all-packages.nix+2−1
@@ -14262,7 +14262,8 @@ with pkgs;
1426214262
1426314263 bitmeter = callPackage ../applications/audio/bitmeter { };
1426414264
14265− bitscope = callPackage ../applications/science/electronics/bitscope/packages.nix { };
14265+ bitscope = recurseIntoAttrs
14266+ (callPackage ../applications/science/electronics/bitscope/packages.nix { });
1426614267
1426714268 bitwig-studio1 = callPackage ../applications/audio/bitwig-studio/bitwig-studio1.nix {
1426814269 inherit (gnome2) zenity;