@@ 1,38 1,7 @@
{
"nodes": {
- "nimble": {
- "inputs": {
- "nixpkgs": "nixpkgs"
- },
- "locked": {
- "lastModified": 1625134608,
- "narHash": "sha256-mCOGDdVNuGFRXfwpYOWhzUlFI57lwYVEGWXdSMEUdkA=",
- "owner": "nix-community",
- "repo": "flake-nimble",
- "rev": "8c4a056c22fa4efa358dc74048cbce70d5cf074e",
- "type": "github"
- },
- "original": {
- "id": "nimble",
- "type": "indirect"
- }
- },
"nixpkgs": {
"locked": {
- "lastModified": 1623747334,
- "narHash": "sha256-yGU7k1XzLhESNc9a6V84gzij6dybTzldgT5b5aU1RWU=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "84a4536e58ec7974fd08ee75ec1a4d40031088e4",
- "type": "github"
- },
- "original": {
- "id": "nixpkgs",
- "type": "indirect"
- }
- },
- "nixpkgs_2": {
- "locked": {
"lastModified": 1628775176,
"narHash": "sha256-TR1D/Fs0g2bHrPRgYFGdTEkA9ujCH+ZilzFcl8f4wBI=",
"owner": "NixOS",
@@ 47,8 16,7 @@
},
"root": {
"inputs": {
- "nimble": "nimble",
- "nixpkgs": "nixpkgs_2"
+ "nixpkgs": "nixpkgs"
}
}
},
@@ 1,24 1,17 @@
{
- description = "A set of implementations of DBM";
+ description = "Development flake";
- outputs = { self, nixpkgs, nimble }:
+ outputs = { self, nixpkgs }:
let
systems = [ "aarch64-linux" "x86_64-linux" ];
- forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
+ forAllSystems = nixpkgs.lib.genAttrs systems;
in {
- defaultPackage = forAllSystems (system:
- let
- pkgs = nixpkgs.legacyPackages.${system};
- nimpkgs = nimble.packages.${system};
- in with pkgs;
- stdenv.mkDerivation {
- pname = "tkrzw";
- version = "unstable-" + self.lastModifiedDate;
- src = self;
- nativeBuildInputs = [ nimpkgs.nim pkgconfig ];
+ devShell = forAllSystems (system:
+ with nixpkgs.legacyPackages.${system};
+ pkgs.mkShell {
+ nativeBuildInputs = [ nim pkg-config ];
buildInputs = [ tkrzw ];
});
-
};
}