attempt 2
This commit is contained in:
parent
4cfe99abab
commit
e91b171e1d
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
|
@ -2,13 +2,15 @@
|
|||
description = "Declaratively update your data.";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
outputs = { nixpkgs, ... }: let
|
||||
package = nixpkgs.stdenv.mkDerivation rec {
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
package = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "fooud";
|
||||
version = "1.0";
|
||||
|
||||
src = ./.;
|
||||
deps = nixpkgs.callPackage ./build.zig.zon.nix {};
|
||||
nativeBuildInputs = [ nixpkgs.zig.hook ];
|
||||
deps = pkgs.callPackage ./build.zig.zon.nix {};
|
||||
nativeBuildInputs = [ pkgs.zig.hook ];
|
||||
zigBuildFlags = [ "--system" "${deps}" ];
|
||||
};
|
||||
in {
|
||||
|
|
@ -21,6 +23,6 @@
|
|||
};
|
||||
|
||||
# just x86 for now
|
||||
packages."x86_64-linux".default = package;
|
||||
packages.${system}.default = package;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue