mirror of
https://github.com/RGBCube/dix
synced 2025-07-28 04:07:46 +00:00
feat: working nix flake
This commit is contained in:
parent
50a9a673bd
commit
5a532c2b82
4 changed files with 37 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "Diff Nix";
|
||||
description = "Dix - Diff Nix";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
@ -11,8 +11,18 @@
|
|||
pkgsFor = inputs.nixpkgs.legacyPackages;
|
||||
in {
|
||||
packages = eachSystem (system: {
|
||||
default = inputs.self.packages.${system}.ralc;
|
||||
ralc = pkgsFor.${system}.callPackage ./nix/package.nix {};
|
||||
default = inputs.self.packages.${system}.dix;
|
||||
dix = pkgsFor.${system}.callPackage ./nix/package.nix {};
|
||||
});
|
||||
|
||||
apps = eachSystem (system: let
|
||||
inherit (inputs.self.packages.${system}) dix;
|
||||
in {
|
||||
default = inputs.self.apps.${system}.dix;
|
||||
dix = {
|
||||
type = "app";
|
||||
program = "${dix}/bin/dix";
|
||||
};
|
||||
});
|
||||
|
||||
devShells = eachSystem (system: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue