about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-06-05 22:05:11 +0300
committerGitHub <noreply@github.com>2018-06-05 22:05:11 +0300
commit706cc4ac68af7a04ec2881f4127b7663f2789755 (patch)
tree21d5e05d1625e2c2588d03705b5be167aae7bba0 /pkgs/tools/security
parent2a0ec8b4456b7aa210d18419e816c3c8fccfe4a6 (diff)
downloadnixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar.gz
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar.bz2
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar.lz
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar.xz
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.tar.zst
nixlib-706cc4ac68af7a04ec2881f4127b7663f2789755.zip
ctmg: review
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/ctmg/default.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/tools/security/ctmg/default.nix b/pkgs/tools/security/ctmg/default.nix
index 270e702cf110..1e0618412210 100644
--- a/pkgs/tools/security/ctmg/default.nix
+++ b/pkgs/tools/security/ctmg/default.nix
@@ -1,25 +1,21 @@
-{ stdenv, fetchurl, ...  }:
+{ stdenv, fetchzip }:
 
 stdenv.mkDerivation rec {
-  name    = "ctmg-${version}";
+  name = "ctmg-${version}";
   version = "1.2";
 
-  src = fetchurl {
-    url    = "https://git.zx2c4.com/ctmg/snapshot/ctmg-${version}.tar.xz";
-    sha256 = "1djxrf66abl63cybxfgjshr8avbp6nq158d0jx4mlfa3pdj32kv9";
+  src = fetchzip {
+    url = "https://git.zx2c4.com/ctmg/snapshot/ctmg-${version}.tar.xz";
+    sha256 = "1i4v8sriwjrmj3yizbl1ysckb711yl9qsn9x45jq0ij1apsydhyc";
   };
 
-  installPhase = ''
-    mkdir -p $out/bin
-    cp ctmg.sh $out/bin/ctmg
-  '';
+  installPhase = "install -D ctmg.sh $out/bin/ctmg";
 
   meta = with stdenv.lib; {
     description = "An encrypted container manager for Linux using cryptsetup";
-    homepage    = https://git.zx2c4.com/ctmg/about/;
-    license     = licenses.free;
+    homepage = https://git.zx2c4.com/ctmg/about/;
+    license = licenses.isc;
     maintainers = with maintainers; [ mrVanDalo ];
-    platforms   = platforms.linux;
+    platforms = platforms.linux;
   };
 }
-