aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-07-09 18:56:33 -0400
committerCara Salter <cara@devcara.com>2022-07-09 18:56:33 -0400
commitec087f3d08f5861b6ffcce00a632858a57c86d31 (patch)
treeeeb3b0b9372b5d01c740c88f196656078d1c9d5d /flake.nix
parent945991ae5227bf3de7d715e4d256e11f1753e4fa (diff)
downloadsolarlib-ec087f3d08f5861b6ffcce00a632858a57c86d31.tar.gz
solarlib-ec087f3d08f5861b6ffcce00a632858a57c86d31.zip
No flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix38
1 files changed, 0 insertions, 38 deletions
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index 415d277..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- inputs = {
- flake-utils.url = "github:numtide/flake-utils";
- naersk.url = "github:nix-community/naersk";
- };
-
- outputs = { self, nixpkgs, flake-utils, naersk }:
- flake-utils.lib.eachDefaultSystem (
- system: let
- pkgs = nixpkgs.legacyPackages."${system}";
- naersk-lib = naersk.lib."${system}";
-
- build-inputs = with pkgs; [
- libvirt
- ];
- in
- rec {
- # `nix build`
- packages.waifulib = naersk-lib.buildPackage {
- pname = "solarlib";
- root = ./.;
- buildInputs = build-inputs;
- };
- defaultPackage = packages.waifulib;
-
- # `nix run`
- apps.waifulib = flake-utils.lib.mkApp {
- drv = packages.waifulib;
- };
- defaultApp = apps.waifulib;
-
- # `nix develop`
- devShell = pkgs.mkShell {
- nativeBuildInputs = with pkgs; [ rustc cargo ] ++ build-inputs;
- };
- }
- );
-}