Commit 05a52a2a authored by ghpzin's avatar ghpzin
Browse files

untie: modernize

- replace `rec` with `finalAttrs`
- remove `with lib;` in `meta`
parent b0f20200
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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";
    };
  };
}
})