This commit is contained in:
2025-09-01 22:33:28 +10:00
parent 95eb87cc24
commit 4b189cd50c
2 changed files with 37 additions and 3 deletions

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1756542300,
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -8,9 +8,16 @@
outputs = {
self,
nixpkgs,
}: {
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
openssl
];
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
nativeBuildInputs = [pkgs.pkg-config];
};
};
}