Skip to content
Snippets Groups Projects
Verified Commit 0d9159e1 authored by Maximilian Marx's avatar Maximilian Marx
Browse files

Add basic nix flake

For now, just provide a development shell with dependencies installed.
Figure out how to package akplanning as a python package later,
probably add a NixOS module as well.
parent 5536d661
No related branches found
No related tags found
No related merge requests found
Pipeline #117316 passed
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1642700792,
"narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"mach-nix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"pypi-deps-db": "pypi-deps-db"
},
"locked": {
"lastModified": 1667918925,
"narHash": "sha256-jCZ4iI4UCOC+T5SEgoCbUzqaeMo5WT3DcFwqwvn2fEs=",
"owner": "DavHau",
"repo": "mach-nix",
"rev": "913e6c16f986746ba5507878ef7ff992804d1fa8",
"type": "github"
},
"original": {
"owner": "DavHau",
"repo": "mach-nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1643805626,
"narHash": "sha256-AXLDVMG+UaAGsGSpOtQHPIKB+IZ0KSd9WS77aanGzgc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "554d2d8aa25b6e583575459c297ec23750adb6cb",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1669378442,
"narHash": "sha256-nm+4PN0A4SnV0SzEchxrMyKPvI3Ld/aoom4PnHeHucs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0faaf0a9bb6dedb69bfd43ac06fb27fadc476c51",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"pypi-deps-db": {
"flake": false,
"locked": {
"lastModified": 1669279144,
"narHash": "sha256-8rdu9WNTbhzfFftzeEera0/nEqH4TLlUSpj1B07Ghws=",
"owner": "DavHau",
"repo": "pypi-deps-db",
"rev": "3ea10df4be564e619cb1c34922822c6e8ad74ea7",
"type": "github"
},
"original": {
"owner": "DavHau",
"repo": "pypi-deps-db",
"type": "github"
}
},
"root": {
"inputs": {
"mach-nix": "mach-nix",
"nixpkgs": "nixpkgs_2",
"utils": "utils"
}
},
"utils": {
"inputs": {
"flake-utils": "flake-utils_2"
},
"locked": {
"lastModified": 1657226504,
"narHash": "sha256-GIYNjuq4mJlFgqKsZ+YrgzWm0IpA4axA3MCrdKYj7gs=",
"owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus",
"rev": "2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a",
"type": "github"
},
"original": {
"owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
mach-nix = {
url = "github:DavHau/mach-nix";
inputs.pypi-deps-db.url = "github:DavHau/pypi-deps-db";
};
};
outputs = { self, nixpkgs, utils, ... }@inputs:
utils.lib.mkFlake {
inherit self inputs;
outputsBuilder = channels:
let
inherit (channels.nixpkgs) system;
mach-nix = inputs.mach-nix.lib."${system}";
in {
devShells.default = channels.nixpkgs.mkShell {
buildInputs = [
(mach-nix.mkPython {
python = "python37";
requirements = builtins.replaceStrings [ "mysqlclient==" ]
[ "mysqlclient>=" ] (builtins.readFile ./requirements.txt);
})
(channels.nixpkgs.texlive.combine {
inherit (channels.nixpkgs.texlive)
scheme-basic beamer luatex collection-latexrecommended
collection-latexextra collection-fontsextra;
})
];
};
};
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment