Skip to content

Commit 3dd29b1

Browse files
committed
Release 0.1
1 parent ef932e7 commit 3dd29b1

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ in
3131
backend = backend-static;
3232
};
3333

34+
grafanix-release = pkgs.callPackage ./nix/grafanix-release.nix {
35+
grafanix = grafanix-static;
36+
};
37+
3438
buildTools = [
3539
hie
3640
pkgs.haskellPackages.cabal2nix

nix/grafanix-release.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{ runCommand
2+
, grafanix
3+
, zip
4+
}:
5+
let
6+
version = grafanix.version;
7+
in
8+
runCommand "grafanix-${version}.zip" {} ''
9+
cd ${grafanix}
10+
${zip}/bin/zip -9 -r $out *
11+
''

nix/grafanix.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
, frontend
33
, runCommand
44
}:
5-
runCommand "grafanix" {} ''
5+
runCommand "grafanix" {
6+
version = "0.1";
7+
} ''
68
mkdir -p $out/static
79
pushd ${../static}
810
cp index.html \

0 commit comments

Comments
 (0)