untie: modernize

- replace `rec` with `finalAttrs`
- remove `with lib;` in `meta`
This commit is contained in:
ghpzin
2025-03-30 15:36:17 +03:00
parent b0f202003e
commit 05a52a2af9

View File

@@ -4,11 +4,11 @@
fetchurl,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "untie";
version = "0.3";
src = fetchurl {
url = "http://guichaz.free.fr/untie/files/${pname}-${version}.tar.bz2";
url = "http://guichaz.free.fr/untie/files/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
sha256 = "1334ngvbi4arcch462mzi5vxvxck4sy1nf0m58116d9xmx83ak0m";
};
@@ -19,12 +19,12 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
meta = {
description = "Tool to run processes untied from some of the namespaces";
mainProgram = "untie";
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Plus;
};
passthru = {
@@ -32,4 +32,4 @@ stdenv.mkDerivation rec {
downloadPage = "http://guichaz.free.fr/untie";
};
};
}
})