add cargo2nix

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-19 13:31:22 +01:00
parent 325e194ae5
commit 54520ef6bc
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 111 additions and 15 deletions

View file

@ -1,5 +1,26 @@
{ {
"nodes": { "nodes": {
"cargo2nix": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1655189312,
"narHash": "sha256-gpJ57OgIebUpO+7F00VltxSEy6dz2x6HeJ5BcRM8rDA=",
"owner": "cargo2nix",
"repo": "cargo2nix",
"rev": "c149357cc3d17f2849c73eb7a09d07a307cdcfe8",
"type": "github"
},
"original": {
"owner": "cargo2nix",
"repo": "cargo2nix",
"type": "github"
}
},
"clean-s3-cache": { "clean-s3-cache": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -16,6 +37,22 @@
"url": "https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e" "url": "https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e"
} }
}, },
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1650374568,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1653893745, "lastModified": 1653893745,
@ -31,9 +68,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gomod2nix": { "gomod2nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
@ -148,16 +200,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1653581809, "lastModified": 1654275867,
"narHash": "sha256-Uvka0V5MTGbeOfWte25+tfRL3moECDh1VwokWSZUdoY=", "narHash": "sha256-pt14ZE4jVPGvfB2NynGsl34pgXfOqum5YJNpDK4+b9E=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "83658b28fe638a170a19b8933aa008b30640fbd1", "rev": "7a20c208aacf4964c19186dcad51f89165dc7ed0",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "nixos",
"ref": "nixos-unstable", "ref": "release-22.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -180,11 +232,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1655415671, "lastModified": 1655562720,
"narHash": "sha256-WD7HxxW1m8D/fkV1QlCYlZvnE5gQdg7ckq3myI4gPtE=", "narHash": "sha256-OrN8DkBRZqZMzMuECuQNvSQ5gWoFBCxDvxYXjIQ/pH0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f96729212602f15a6a226d2f27f5de70492ad095", "rev": "27dffce7eaa9648b4a13a461e786f169a17c0889",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -196,11 +248,27 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1655583581, "lastModified": 1653581809,
"narHash": "sha256-7t8qgaDrXZIYs+S8FzDLz5YgMMGvTaXGf/JO1x8JXbI=", "narHash": "sha256-Uvka0V5MTGbeOfWte25+tfRL3moECDh1VwokWSZUdoY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6a64c0ef4b5dab8bbcbbff8a6234f1cd7d12641b", "rev": "83658b28fe638a170a19b8933aa008b30640fbd1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1655641096,
"narHash": "sha256-VwjhpSJ/m+4TqoDobYcwRC1iJXqEg30GbdTif9pkahE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ce505a39845b93e48f125ededeaaec6f597df43f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -243,8 +311,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"cargo2nix": "cargo2nix",
"clean-s3-cache": "clean-s3-cache", "clean-s3-cache": "clean-s3-cache",
"flake-utils": "flake-utils", "flake-utils": "flake-utils_2",
"gomod2nix": "gomod2nix", "gomod2nix": "gomod2nix",
"kreative-open-relay": "kreative-open-relay", "kreative-open-relay": "kreative-open-relay",
"mastodon": "mastodon", "mastodon": "mastodon",
@ -252,7 +321,7 @@
"mautrix-whatsapp": "mautrix-whatsapp", "mautrix-whatsapp": "mautrix-whatsapp",
"miifox-net": "miifox-net", "miifox-net": "miifox-net",
"nasin-nanpa": "nasin-nanpa", "nasin-nanpa": "nasin-nanpa",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"nixpkgs-go116": "nixpkgs-go116", "nixpkgs-go116": "nixpkgs-go116",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"plover": "plover", "plover": "plover",
@ -260,6 +329,31 @@
"wortformliste": "wortformliste" "wortformliste": "wortformliste"
} }
}, },
"rust-overlay": {
"inputs": {
"flake-utils": [
"cargo2nix",
"flake-utils"
],
"nixpkgs": [
"cargo2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1653878966,
"narHash": "sha256-T51Gck/vrJZi1m+uTbhEFTRgZmE59sydVONadADv358=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "8526d618af012a923ca116be9603e818b502a8db",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1653893745, "lastModified": 1653893745,

View file

@ -29,6 +29,7 @@
regenpfeifer.flake = false; regenpfeifer.flake = false;
wortformliste.url = "github:mkrnr/wortformliste"; wortformliste.url = "github:mkrnr/wortformliste";
wortformliste.flake = false; wortformliste.flake = false;
cargo2nix.url = "github:cargo2nix/cargo2nix";
}; };
outputs = { outputs = {
@ -66,6 +67,7 @@
if system == "x86_64-linux" if system == "x86_64-linux"
then { then {
inherit packages devShells; inherit packages devShells;
inherit (inputs.cargo2nix.packages.${system}) cargo2nix;
} }
else {}; else {};
} }