about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/compiz-fusion/bcop/0.7.8.nix
blob: 07ba60cd8333b5fbdb5c4254eb21a9da6e4d48ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
args : with args;
	let localDefs = builderDefs.passthru.function {
		src = /* put a fetchurl here */
	fetchurl {
		url = http://releases.compiz-fusion.org/0.7.8/compiz-bcop-0.7.8.tar.bz2;
		sha256 ="1rs5r5b6rl39vlw68i8bwm5izs5dm666kygmg1c8dy2dab0xsnkq";
	};
		buildInputs = (import ../general-dependencies.nix args);
		propagatedBuildInputs = [getopt libxslt];
		configureFlags = [];
	} ;
	in with localDefs;
let 
	fixPkgconfig = fullDepEntry ("
		ensureDir \$out/lib
		ln -fs \$out/share/pkgconfig \$out/lib/pkgconfig
	") [minInit doMakeInstall defEnsureDir];
	fixInterpreter = fullDepEntry ("
		sed -e 's@^#!/bin/bash@#! ${stdenv.bash}/bin/bash@' -i \$out/bin/bcop
	") [minInit doMakeInstall];
in
stdenv.mkDerivation rec {
	name = "compiz-bcop-"+version;
	builder = writeScript (name + "-builder")
		(textClosure localDefs [doAutotools doConfigure doMakeInstall fixPkgconfig fixInterpreter doForceShare 
			doPropagate]);
	inherit propagatedBuildInputs;
	meta = {
		description = "
	Compiz BCOP.
";
		inherit src;
	};
}