diff options
author | Felix Buehler <account@buehler.rocks> | 2021-11-29 19:24:13 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-11-30 21:11:29 +0100 |
commit | 22dffe27f394427505d1c9006dcb6aebc6b9f85b (patch) | |
tree | 6a83be474c2b7aa0d3fa41cb572df841da3ea0c7 /pkgs/tools/misc/heimdall | |
parent | 4f6849f7c416bcaf48b349a33890d67713838ec1 (diff) |
pkgs/tools: use pname&version instead of name
Diffstat (limited to 'pkgs/tools/misc/heimdall')
-rw-r--r-- | pkgs/tools/misc/heimdall/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/misc/heimdall/default.nix b/pkgs/tools/misc/heimdall/default.nix index 3dcefa8b2d0f3..19bc90779d833 100644 --- a/pkgs/tools/misc/heimdall/default.nix +++ b/pkgs/tools/misc/heimdall/default.nix @@ -2,10 +2,9 @@ , enableGUI ? false, qtbase ? null }: -let version = "1.4.2"; in - -mkDerivation { - name = "heimdall-${if enableGUI then "gui-" else ""}${version}"; +mkDerivation rec { + pname = "heimdall${lib.optionalString enableGUI "-gui"}"; + version = "1.4.2"; src = fetchFromGitHub { owner = "Benjamin-Dobell"; @@ -15,7 +14,8 @@ mkDerivation { }; buildInputs = [ - zlib libusb1 + zlib + libusb1 ] ++ lib.optional enableGUI qtbase; nativeBuildInputs = [ cmake ]; @@ -44,10 +44,10 @@ mkDerivation { ''; meta = with lib; { - homepage = "http://www.glassechidna.com.au/products/heimdall/"; + homepage = "http://www.glassechidna.com.au/products/heimdall/"; description = "A cross-platform tool suite to flash firmware onto Samsung Galaxy S devices"; - license = licenses.mit; + license = licenses.mit; maintainers = with maintainers; [ peterhoeg ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } |