1
Fork 0
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:
Bloxx12 2025-05-09 20:53:03 +02:00
parent 50a9a673bd
commit 5a532c2b82
No known key found for this signature in database
4 changed files with 37 additions and 8 deletions

View file

@ -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: {