untie: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-04-02 16:15:17 +02:00
parent 79a827c7fb
commit 9d7c387d26

View file

@ -1,46 +1,24 @@
x@{builderDefsPackage { stdenv, fetchurl }:
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); name = "untie-${version}";
sourceInfo = rec { version = "0.3";
baseName="untie"; src = fetchurl {
version="0.3"; url = "http://guichaz.free.fr/untie/files/${name}.tar.bz2";
name="${baseName}-${version}"; sha256 = "1334ngvbi4arcch462mzi5vxvxck4sy1nf0m58116d9xmx83ak0m";
url="http://guichaz.free.fr/${baseName}/files/${name}.tar.bz2";
hash="154c3550af3d3513022a15381bbc2693f5dd7789bf0a4320635991b8f6b3648c";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
}; };
inherit (sourceInfo) name version; makeFlags = "PREFIX=$(out)";
inherit buildInputs;
phaseNames = ["doMakeInstall"]; meta = with stdenv.lib; {
makeFlags=["PREFIX=$out"];
meta = {
description = "A tool to run processes untied from some of the namespaces"; description = "A tool to run processes untied from some of the namespaces";
maintainers = with a.lib.maintainers; maintainers = with maintainers; [ raskin ];
[ platforms = with platforms; linux;
raskin
];
platforms = with a.lib.platforms;
linux;
}; };
passthru = { passthru = {
updateInfo = { updateInfo = {
downloadPage = "http://guichaz.free.fr/untie"; downloadPage = "http://guichaz.free.fr/untie";
}; };
}; };
}) x }