mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Added possibility to use non-default Nix.
svn path=/nixpkgs/trunk/; revision=9663
This commit is contained in:
parent
1627b94ee7
commit
29e0bc3103
24
pkgs/tools/package-management/nix/custom.nix
Normal file
24
pkgs/tools/package-management/nix/custom.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
|
||||
, storeDir ? "/nix/store"
|
||||
, stateDir ? "/nix/var"
|
||||
,src
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "nix-custom";
|
||||
|
||||
inherit src;
|
||||
|
||||
buildInputs = [perl curl openssl];
|
||||
|
||||
configureFlags = "
|
||||
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
||||
--with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2}
|
||||
--disable-init-state";
|
||||
|
||||
meta = {
|
||||
description = "The Nix Deployment System";
|
||||
homepage = http://nix.cs.uu.nl/;
|
||||
license = "LGPL";
|
||||
};
|
||||
}
|
@ -4524,6 +4524,12 @@ rec {
|
||||
db4 = db45;
|
||||
};
|
||||
|
||||
nixCustomFun = src: (import ../tools/package-management/nix/custom.nix {
|
||||
inherit fetchurl stdenv perl curl bzip2 openssl src;
|
||||
aterm = aterm242fixes;
|
||||
db4 = db45;
|
||||
});
|
||||
|
||||
ntfs3g = import ../misc/ntfs-3g {
|
||||
inherit fetchurl stdenv fuse pkgconfig;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user