summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-21 13:41:20 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-21 13:41:20 +0200
commit40e00bb8d4a07663a277e01a35087cbc13779895 (patch)
treefd5ae9658da68f5a06a0614c67a97e403cda7a20 /pkgs
parent7ca9718c5fab01370539d0dc576f760f7fd5d032 (diff)
downloadnixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar.gz
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar.bz2
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar.lz
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar.xz
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.tar.zst
nixpkgs-40e00bb8d4a07663a277e01a35087cbc13779895.zip
lhasa: cleanup
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/compression/lhasa/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/tools/compression/lhasa/default.nix b/pkgs/tools/compression/lhasa/default.nix
index 77df84879b8..4f1ba702831 100644
--- a/pkgs/tools/compression/lhasa/default.nix
+++ b/pkgs/tools/compression/lhasa/default.nix
@@ -1,21 +1,24 @@
-{lib, stdenv, fetchurl}:
+{ lib, stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  pname = "lhasa";
+  version = "0.3.1";
 
-stdenv.mkDerivation {
-  name = "lhasa-0.3.1";
   src = fetchurl {
-    url = "https://soulsphere.org/projects/lhasa/lhasa-0.3.1.tar.gz";
+    url = "https://soulsphere.org/projects/lhasa/lhasa-${version}.tar.gz";
     sha256 = "092zi9av18ma20c6h9448k0bapvx2plnp292741dvfd9hmgqxc1z";
   };
-  meta = {
+
+  meta = with lib; {
     description = "Free Software replacement for the Unix LHA tool";
     longDescription = ''
       Lhasa is a Free Software replacement for the Unix LHA tool, for
       decompressing .lzh (LHA / LHarc) and .lzs (LArc) archives. The backend for
       the tool is a library, so that it can be reused for other purposes.
     '';
-    license = lib.licenses.isc;
+    license = licenses.isc;
     homepage = "http://fragglet.github.io/lhasa";
-    maintainers = with lib; [ maintainers.sander ];
-    platforms = with lib.platforms; linux ++ darwin;
+    maintainers = [ maintainers.sander ];
+    platforms = platforms.unix;
   };
 }