summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-07-05 20:14:04 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-07-05 20:14:04 +0200
commit42ab2920f1bbbad7c7a641789e441c58791ab68e (patch)
treec6d833a9dd062e2eb107df481fb1eaca75f6af0f /pkgs/tools/system
parentb11897615150d25e07b16ab00398accbce1b77f6 (diff)
downloadnixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar.gz
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar.bz2
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar.lz
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar.xz
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.tar.zst
nixpkgs-42ab2920f1bbbad7c7a641789e441c58791ab68e.zip
tm: cleanup
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/tm/default.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/pkgs/tools/system/tm/default.nix b/pkgs/tools/system/tm/default.nix
index aa946c72ffc..19ade9b929c 100644
--- a/pkgs/tools/system/tm/default.nix
+++ b/pkgs/tools/system/tm/default.nix
@@ -1,26 +1,28 @@
-{lib, stdenv, fetchurl}:
+{ lib
+, stdenv
+, fetchurl
+}:
 
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
+  pname = "tm";
+  version = "0.4.1";
 
-  name = "tm-0.4.1";
+  src = fetchurl {
+    url = "https://vicerveza.homeunix.net/~viric/soft/tm/tm-${version}.tar.gz";
+    sha256 = "3b389bc03b6964ad5ffa57a344b891fdbcf7c9b2604adda723a863f83657c4a0";
+  };
 
-  installPhase=''make install "PREFIX=$out"'';
+  makeFlags = [ "PREFIX=$(out)" ];
 
-  patchPhase = ''
+  postPatch = ''
     sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
   '';
 
-  src = fetchurl {
-    url = "http://vicerveza.homeunix.net/~viric/soft/tm/tm-0.4.1.tar.gz";
-    sha256 = "3b389bc03b6964ad5ffa57a344b891fdbcf7c9b2604adda723a863f83657c4a0";
-  };
-
   meta = with lib; {
-    homepage = "http://vicerveza.homeunix.net/~viric/soft/tm";
     description = "Terminal mixer - multiplexer for the i/o of terminal applications";
-    license = licenses.gpl2;
+    homepage = "http://vicerveza.homeunix.net/~viric/soft/tm";
+    license = licenses.gpl2Plus;
     maintainers = with maintainers; [ viric ];
     platforms = platforms.all;
   };
-
 }