simplified flake

pull/1/head
Tudor Roman 2024-01-22 17:53:48 +01:00
parent 3daddbdb53
commit 5fcac92aa3
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
2 changed files with 11 additions and 94 deletions

View File

@ -1,69 +1,5 @@
{
"nodes": {
"deno2nix": {
"inputs": {
"devshell": "devshell",
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1694341738,
"narHash": "sha256-zEosA90LiNd3/EFpZNKs7XPdY7PIsat19I6uJb/MuYU=",
"owner": "SnO2WMaN",
"repo": "deno2nix",
"rev": "38dcc186763ab930acd1d751b4bfe3c0bd606ef3",
"type": "github"
},
"original": {
"owner": "SnO2WMaN",
"repo": "deno2nix",
"type": "github"
}
},
"devshell": {
"inputs": {
"flake-utils": [
"deno2nix",
"flake-utils"
],
"nixpkgs": [
"deno2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1667210711,
"narHash": "sha256-IoErjXZAkzYWHEpQqwu/DeRNJGFdR7X2OGbkhMqMrpw=",
"owner": "numtide",
"repo": "devshell",
"rev": "96a9dd12b8a447840cc246e17a47b81a4268bba7",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "devshell",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1668681692,
"narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "009399224d5e398d03b22badca40a37ac85412a1",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -84,21 +20,6 @@
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1705331948,
@ -117,7 +38,6 @@
},
"root": {
"inputs": {
"deno2nix": "deno2nix",
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}

View File

@ -6,36 +6,33 @@
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
deno2nix = {
url = "github:SnO2WMaN/deno2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@
{ self
, nixpkgs
, flake-parts
, deno2nix
, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { pkgs, system, ... }: {
_module.args.pkgs = import nixpkgs {
inherit system;
overlays = [
deno2nix.overlays.default
];
};
flake = {
overlays.default = final: prev: {
runLume = with final; writeShellScriptBin "runlume" ''
${lib.getExe pkgs.deno} task lume $@
'';
};
};
perSystem = { self', pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
deno
nodejs
];
};
packages.default = (self.overlays.default pkgs {}).runLume;
};
};
}