diff options
author | stuebinm | 2023-03-02 02:10:09 +0100 |
---|---|---|
committer | stuebinm | 2023-03-02 02:10:09 +0100 |
commit | 476ed4c73d9ae03d9af35ab1e80f72aba0b36fbf (patch) | |
tree | 1e15bd80701d31ce906e870720bb62027f9adb1b /flake.nix | |
parent | 5596ebcbad7721f767972c3143f8e5be1ba8fc09 (diff) |
but also i wanted to do this two years ago, but couldn't figure out
how so there was always this binary blob …
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cac6b57 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "A very basic flake"; + + inputs = { + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nixpkgs.url = "nixpkgs/nixos-unstable"; + }; + outputs = { self, nixpkgs, rust-overlay, ... }: let + system = "x86_64-linux"; + overlays = [ rust-overlay.overlays.default ]; + pkgs = import nixpkgs { inherit overlays system; }; + rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; + buildRustPackage = pkgs.rustPlatform.buildRustPackage; + in { + packages.x86_64-linux.wage = + pkgs.callPackage ./wage { inherit rust buildRustPackage; }; + }; +} |