diff --git a/pkgs/os-specific/linux/tomb/default.nix b/pkgs/by-name/to/tomb/package.nix similarity index 62% rename from pkgs/os-specific/linux/tomb/default.nix rename to pkgs/by-name/to/tomb/package.nix index 98dd9bc1dbca..94d7cf2b34a6 100644 --- a/pkgs/os-specific/linux/tomb/default.nix +++ b/pkgs/by-name/to/tomb/package.nix @@ -1,40 +1,43 @@ -{ stdenvNoCC -, lib -, fetchFromGitHub -, substituteAll -, makeWrapper -, zsh -, coreutils -, cryptsetup -, e2fsprogs -, file -, gawk -, getent -, gettext -, gnugrep -, gnupg -, libargon2 -, lsof -, pinentry -, util-linux -, nix-update-script +{ + coreutils, + cryptsetup, + e2fsprogs, + fetchFromGitHub, + file, + gawk, + getent, + gettext, + gnugrep, + gnupg, + lib, + libargon2, + lsof, + makeWrapper, + nix-update-script, + pinentry, + stdenvNoCC, + util-linux, + zsh, }: stdenvNoCC.mkDerivation rec { pname = "tomb"; - version = "2.10"; + version = "2.11"; src = fetchFromGitHub { owner = "dyne"; repo = "Tomb"; rev = "refs/tags/v${version}"; - hash = "sha256-lLxQJX0P6b6lbXEcrq45EsX9iKiayZ9XkhqgMfpN3/w="; + hash = "sha256-H9etbodTKxROJAITbViQQ6tkEr9rKNITTHfsGGQbyR0="; }; - buildInputs = [ zsh pinentry ]; - nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ + pinentry + zsh + ]; + postPatch = '' # if not, it shows .tomb-wrapped when running substituteInPlace tomb \ @@ -46,7 +49,8 @@ stdenvNoCC.mkDerivation rec { install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1 wrapProgram $out/bin/tomb \ - --prefix PATH : $out/bin:${lib.makeBinPath [ + --prefix PATH : $out/bin:${ + lib.makeBinPath [ coreutils cryptsetup e2fsprogs @@ -60,20 +64,24 @@ stdenvNoCC.mkDerivation rec { lsof pinentry util-linux - ]} + ] + } ''; passthru = { updateScript = nix-update-script { }; }; - meta = with lib; { + meta = { description = "File encryption on GNU/Linux"; homepage = "https://www.dyne.org/software/tomb/"; changelog = "https://github.com/dyne/Tomb/blob/v${version}/ChangeLog.md"; - license = licenses.gpl3Only; + license = lib.licenses.gpl3Only; mainProgram = "tomb"; - maintainers = with maintainers; [ peterhoeg anthonyroussel ]; - platforms = platforms.linux; + maintainers = with lib.maintainers; [ + peterhoeg + anthonyroussel + ]; + platforms = lib.platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 700afe9e943c..32ce9546edee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39983,7 +39983,7 @@ with pkgs; linkchecker = callPackage ../tools/networking/linkchecker { }; - tomb = callPackage ../os-specific/linux/tomb { + tomb = callPackage ../by-name/to/tomb/package.nix { pinentry = pinentry-curses; };