forked from mirrors/nixpkgs
smbnetfs: reimplement using mkDerivation
This commit is contained in:
parent
6812c1eedc
commit
4fb29f8d3b
|
@ -1,47 +1,23 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, fuse, samba, pkgconfig, glib }:
|
||||||
, fuse, samba, pkgconfig, glib
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "smbnetfs-${version}";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="smbnetfs";
|
|
||||||
dirBaseName="SMBNetFS";
|
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
name="${baseName}-${version}";
|
src = fetchurl {
|
||||||
project="${baseName}";
|
url = "mirror://sourceforge/project/smbnetfs/smbnetfs/SMBNetFS-${version}/${name}.tar.bz2";
|
||||||
url="mirror://sourceforge/project/${project}/${baseName}/${dirBaseName}-${version}/${name}.tar.bz2";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = "16sikr81ipn8v1a1zrqgnsy2as3zcaxbzkr0bm5vxy012bq0plkd";
|
sha256 = "16sikr81ipn8v1a1zrqgnsy2as3zcaxbzkr0bm5vxy012bq0plkd";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [ fuse samba pkgconfig glib ];
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
meta = with stdenv.lib; {
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A FUSE FS for mounting Samba shares";
|
description = "A FUSE FS for mounting Samba shares";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers; [ raskin ];
|
||||||
[
|
platforms = with platforms; linux;
|
||||||
raskin
|
license = licenses.gpl2;
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.gpl2;
|
|
||||||
downloadPage = "http://sourceforge.net/projects/smbnetfs/files/smbnetfs";
|
downloadPage = "http://sourceforge.net/projects/smbnetfs/files/smbnetfs";
|
||||||
updateWalker = true;
|
updateWalker = true;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
homepage = http://sourceforge.net/projects/smbnetfs/;
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue