about summary refs log tree commit diff
path: root/pkgs/applications/audio/mimms
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-06-23 15:27:58 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-06-23 18:14:26 +0200
commitced21f5e1a1479e3b6ae5c218818790596f5a16f (patch)
tree41b23b3b4535b9755269e083f11969b3bfd40990 /pkgs/applications/audio/mimms
parent8cfa9cc66c37fbb8a95cf6dbf2a4279bf9e32e08 (diff)
downloadnixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar.gz
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar.bz2
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar.lz
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar.xz
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.tar.zst
nixlib-ced21f5e1a1479e3b6ae5c218818790596f5a16f.zip
pythonPackages: remove `name` attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
Diffstat (limited to 'pkgs/applications/audio/mimms')
-rw-r--r--pkgs/applications/audio/mimms/default.nix52
1 files changed, 26 insertions, 26 deletions
diff --git a/pkgs/applications/audio/mimms/default.nix b/pkgs/applications/audio/mimms/default.nix
index cee3469e3f53..b9b840682d74 100644
--- a/pkgs/applications/audio/mimms/default.nix
+++ b/pkgs/applications/audio/mimms/default.nix
@@ -1,31 +1,31 @@
 { fetchurl, stdenv, pythonPackages, libmms }:
 
-let version = "3.2";
-in
-  pythonPackages.buildPythonApplication {
-    name = "mimms-${version}";
-    src = fetchurl {
-      url = "http://download.savannah.gnu.org/releases/mimms/mimms-${version}.tar.bz2";
-      sha256 = "0zmcd670mpq85cs3nvdq3i805ba0d1alqahfy1m9cpf7kxrivfml";
-    };
+pythonPackages.buildPythonApplication rec {
+  pname = "mimms";
+  version = "3.2";
 
-    postInstall = ''
-      wrapProgram $out/bin/mimms \
-        --prefix LD_LIBRARY_PATH : ${libmms}/lib
-    '';
+  src = fetchurl {
+    url = "http://download.savannah.gnu.org/releases/mimms/mimms-${version}.tar.bz2";
+    sha256 = "0zmcd670mpq85cs3nvdq3i805ba0d1alqahfy1m9cpf7kxrivfml";
+  };
+
+  postInstall = ''
+    wrapProgram $out/bin/mimms \
+      --prefix LD_LIBRARY_PATH : ${libmms}/lib
+  '';
 
-    meta = {
-      homepage = https://savannah.nongnu.org/projects/mimms/;
-      license = stdenv.lib.licenses.gpl3;
-      description = "An mms (e.g. mms://) stream downloader";
+  meta = {
+    homepage = https://savannah.nongnu.org/projects/mimms/;
+    license = stdenv.lib.licenses.gpl3;
+    description = "An mms (e.g. mms://) stream downloader";
 
-      longDescription = ''
-        mimms is a program designed to allow you to download streams
-        using the MMS protocol and save them to your computer, as
-        opposed to watching them live. Similar functionality is
-        available in full media player suites such as Xine, MPlayer,
-        and VLC, but mimms is quick and easy to use and, for the time
-        being, remains a useful program.
-      '';
-    };
-  }
+    longDescription = ''
+      mimms is a program designed to allow you to download streams
+      using the MMS protocol and save them to your computer, as
+      opposed to watching them live. Similar functionality is
+      available in full media player suites such as Xine, MPlayer,
+      and VLC, but mimms is quick and easy to use and, for the time
+      being, remains a useful program.
+    '';
+  };
+}