summary refs log tree commit diff
path: root/pkgs/tools/archivers/s-tar
diff options
context:
space:
mode:
authorwucke13 <wucke13@gmail.com>2018-05-28 11:56:35 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-05-28 11:56:35 +0200
commit347cc5015c57b3002b07ba7b568d37433e0636a8 (patch)
treee0b8fb39609d1bda0a6343feb2ef43b5bce7445c /pkgs/tools/archivers/s-tar
parent0e97d7112626108b5def25bb18f0a8f4f9884b65 (diff)
downloadnixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar.gz
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar.bz2
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar.lz
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar.xz
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.tar.zst
nixpkgs-347cc5015c57b3002b07ba7b568d37433e0636a8.zip
s-tar: init at 1.5.3 (#40771)
Diffstat (limited to 'pkgs/tools/archivers/s-tar')
-rw-r--r--pkgs/tools/archivers/s-tar/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/s-tar/default.nix b/pkgs/tools/archivers/s-tar/default.nix
new file mode 100644
index 00000000000..de25d00cf21
--- /dev/null
+++ b/pkgs/tools/archivers/s-tar/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "s-tar-${version}";
+  version = "1.5.3";
+  src = fetchurl {
+    url = "mirror://sourceforge/s-tar/star-${version}.tar.bz2";
+    sha256 = "0nsg3adv8lwqsbizicgmyxx8w26d1f4almprkcb08cd87s1l40q7";
+  };
+
+  preConfigure = "rm configure";
+  preBuild = "sed 's_/bin/__g' -i RULES/*";
+  makeFlags = [ "GMAKE_NOWARN=true" ];
+  installFlags = [ "DESTDIR=$(out)" "INS_BASE=/" ];
+  postInstall = ''
+    find $out/bin -type l -delete
+    rm -r $out/etc $out/include $out/sbin
+  '';
+
+  meta = {
+    description = "A very fast tar like tape archiver with improved functionality";
+    longDescription = ''
+      Star archives and extracts multiple files to and from a single file called a tarfile.
+      A tarfile is usually a magnetic tape, but it can be any file.
+      In all cases, appearance of a directory name refers to the files and (recursively) sub-directories of that directory.
+      Star's actions are controlled by the mandatory command flags from the list below.
+      The way star acts may be modified by additional options.
+      Note that unpacking tar archives may be a security risk because star may overwrite existing files.
+    '';
+    homepage = http://cdrtools.sourceforge.net/private/star.html;
+    license = stdenv.lib.licenses.cddl;
+    maintainers = [ stdenv.lib.maintainers.wucke13 ];
+    platforms = [ "x86_64-linux" ];
+  };
+}