-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (57 loc) · 1.42 KB
/
flake.nix
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
description = "firm-homepage build environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
/*
ycomp = {
type = "file";
url = "http://pp.ipd.kit.edu/firm/download/yComp-1.3.19.zip";
flake = false;
unpack = true;
};
*/
};
outputs = inputs @ { self, ... }:
inputs.flake-utils.lib.eachDefaultSystem (system: let
pkgs = import (inputs.nixpkgs) { inherit system; };
ycomp = stdenv.mkDerivation {
name = "ycomp";
src = pkgs.fetchzip {
url = "http://pp.ipd.kit.edu/firm/download/yComp-1.3.19.zip";
sha256 = "sha256-INfOay5TS/6YH6vGJG0W4+OyUOxLTLvDr2MxwJiSUyk=";
};
buildPhase = ''
chmod +x ycomp
'';
installPhase = ''
mkdir -p $out
cp -rvp * $out
'';
};
inherit (pkgs) stdenv;
in {
devShell = pkgs.mkShell {
name = "firm-homepage-shell";
buildInputs = with pkgs; [
asciidoc
doxygen
graphviz
(python312.withPackages (python-pkgs: [
python-pkgs.pygments
]))
jre8
unzip
libxml2
];
/*
env = {
YCOMP = "${pkgs.ycomp.out}";
};
*/
shellHook = ''
export YCOMP="${ycomp.out}/ycomp"
'';
};
});
}