-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (39 loc) · 1.17 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
{
description = "Mapping asylum for Mapping Cities – Making Cities";
inputs.nixpkgs.url = "github:NixOS/Nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
config = { system = "x86_64-linux"; };
pkgs = import nixpkgs config;
in
{
defaultPackage.x86_64-linux = self.packages.x86_64-linux.webapp;
packages.x86_64-linux.webapp = let
webapp = import ./default.nix {
inherit nixpkgs config;
revision = self.rev or "dirty";
};
in pkgs.runCommand "mappingmigration" { } ''
mkdir -p $out/mapping
ln -s ${webapp} $out/mapping/asylum
'';
nixosModule = import ./module.nix self.packages.x86_64-linux.webapp;
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; with elmPackages; [
elm
elm-format
elm-test
elm-json
elm2nix
(python3.withPackages (ps: with ps; [
pandas
]))
(inkscape-with-extensions.override {
inkscapeExtensions = with inkscape-extensions; [
applytransforms
];
})
];
};
};
}