mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
untie: modernize
- replace `rec` with `finalAttrs` - remove `with lib;` in `meta`
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user