summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-12-01 13:46:39 +0100
committerFelix Buehler <account@buehler.rocks>2021-12-05 15:38:17 +0100
commit8d0267dc8f02e010785d6f90573ea1135b7957e7 (patch)
tree9987a4f25d9c939dab4544a74a8a454469ce16b2 /pkgs/tools/system
parentaf6071db609bdf86f5d36f0bc4a4ac0fe8e92c35 (diff)
downloadnixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar.gz
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar.bz2
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar.lz
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar.xz
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.tar.zst
nixpkgs-8d0267dc8f02e010785d6f90573ea1135b7957e7.zip
treewide: use pname&version instead of name
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/lshw/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/system/lshw/default.nix b/pkgs/tools/system/lshw/default.nix
index 040f065acd7..1f29176fd0f 100644
--- a/pkgs/tools/system/lshw/default.nix
+++ b/pkgs/tools/system/lshw/default.nix
@@ -2,14 +2,12 @@
 , withGUI ? false, gtk2, pkg-config, sqlite # compile GUI
 }:
 
-let numVersion = "02.18"; # :(
-in
 stdenv.mkDerivation rec {
-  name = "lshw-${numVersion}b";
-  version = numVersion;
+  pname = "lshw";
+  version = "B.02.18";
 
   src = fetchurl {
-    url = "https://ezix.org/software/files/lshw-B.${version}.tar.gz";
+    url = "https://ezix.org/software/files/lshw-${version}.tar.gz";
     sha256 = "0brwra4jld0d53d7jsgca415ljglmmx1l2iazpj4ndilr48yy8mf";
   };