7f5b839524
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'. * Replaced `with args' with formal function arguments in several packages. * Renamed several files to `default.nix'. As a general rule, version numbers should only be included in the filename when there is a reason to keep multiple versions of a package in Nixpkgs. Otherwise, it just makes it harder to update the package. svn path=/nixpkgs/trunk/; revision=18403
21 lines
627 B
Nix
21 lines
627 B
Nix
args : with args;
|
|
let localDefs = builderDefs.passthru.function {
|
|
src = /* put a fetchurl here */
|
|
fetchurl {
|
|
url = http://downloads.sourceforge.net/gdmap/gdmap-0.8.1.tar.gz;
|
|
sha256 = "0nr8l88cg19zj585hczj8v73yh21k7j13xivhlzl8jdk0j0cj052";
|
|
};
|
|
|
|
buildInputs = [gtk pkgconfig libxml2 intltool gettext];
|
|
configureFlags = [];
|
|
};
|
|
in with localDefs;
|
|
stdenv.mkDerivation rec {
|
|
name = "gdmap-0.8.1";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "Recursive rectangle map of disk usage";
|
|
inherit src;
|
|
};
|
|
}
|