summary refs log tree commit diff
path: root/pkgs/tools/backup/mt-st/default.nix
blob: 57201d69dbacb15bc4fa4e41702c72053cbd856d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "mt-st-1.3";

  src = fetchurl {
    url = "https://github.com/iustin/mt-st/releases/download/${name}/${name}.tar.gz";
    sha256 = "b552775326a327cdcc076c431c5cbc4f4e235ac7c41aa931ad83f94cccb9f6de";
  };

  installFlags = [ "PREFIX=$(out)" "EXEC_PREFIX=$(out)" ];

  meta = {
    description = "Magnetic Tape control tools for Linux";
    longDescription = ''
      Fork of the standard "mt" tool with additional Linux-specific IOCTLs.
    '';
    homepage = "https://github.com/iustin/mt-st";
    license = stdenv.lib.licenses.gpl2;
    maintainers = [ stdenv.lib.maintainers.redvers ];
    platforms = stdenv.lib.platforms.linux;
  };
}