1
0
forked from extern/nix-config

meta: Use crystal-flake for crystal development

The current crystal binary in nixpkgs complains about not finding pcre
when you try to compile anything with it, so crystal-flake is necessary
to have a working crystal environment under NixOS.

crystal-flake additionally packages crystalline, which is nice since no
one has been able to successfully create a pull request for nixpkgs yet.

Reference: https://github.com/NixOS/nixpkgs/issues/129002
This commit is contained in:
Donovan Glover 2023-06-08 15:13:38 -04:00
parent db06c3ac02
commit a5941a1701
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 180 additions and 2 deletions

View File

@ -1,5 +1,22 @@
{
"nodes": {
"ameba-src": {
"flake": false,
"locked": {
"lastModified": 1679041484,
"narHash": "sha256-pc9mtVR/PBhM5l1PnDkm+y+McxbrfAmQzxmLi761VF4=",
"owner": "crystal-ameba",
"repo": "ameba",
"rev": "7c74d196d6d9a496a81a0c7b79ef44f39faf41b8",
"type": "github"
},
"original": {
"owner": "crystal-ameba",
"ref": "v1.4.3",
"repo": "ameba",
"type": "github"
}
},
"base16": {
"inputs": {
"nixpkgs": [
@ -21,6 +38,121 @@
"type": "github"
}
},
"bdwgc-src": {
"flake": false,
"locked": {
"lastModified": 1661523039,
"narHash": "sha256-UYJQGeSykmfydGAmTlNJNyAPBasBkddOSoopBHiY7TI=",
"owner": "ivmai",
"repo": "bdwgc",
"rev": "cd1fbc1dbfd2cc888436944dd2784f39820698d7",
"type": "github"
},
"original": {
"owner": "ivmai",
"ref": "v8.2.2",
"repo": "bdwgc",
"type": "github"
}
},
"crystal-aarch64-darwin": {
"flake": false,
"locked": {
"narHash": "sha256-NqYaZHM3kHAgYbO0RDJtA8eHqp4vVe4MBpisTOGrRVw=",
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-darwin-universal.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-darwin-universal.tar.gz"
}
},
"crystal-flake": {
"inputs": {
"ameba-src": "ameba-src",
"bdwgc-src": "bdwgc-src",
"crystal-aarch64-darwin": "crystal-aarch64-darwin",
"crystal-src": "crystal-src",
"crystal-x86_64-darwin": "crystal-x86_64-darwin",
"crystal-x86_64-linux": "crystal-x86_64-linux",
"crystalline-src": "crystalline-src",
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1683429373,
"narHash": "sha256-Mx5lwMyk2T40wFqOoYcJLs4srwO2UrsepTZhlHNuTrI=",
"owner": "manveru",
"repo": "crystal-flake",
"rev": "e7a443c20e2be6e5dd870586705dd27c91aa9c5c",
"type": "github"
},
"original": {
"owner": "manveru",
"repo": "crystal-flake",
"type": "github"
}
},
"crystal-src": {
"flake": false,
"locked": {
"lastModified": 1681995387,
"narHash": "sha256-t+1vM1m62UftCvfa90Dg6nqt6Zseh/GP/Gc1VfOa4+c=",
"owner": "crystal-lang",
"repo": "crystal",
"rev": "a59a3dbd738269d5aad6051c3834fc70f482f469",
"type": "github"
},
"original": {
"owner": "crystal-lang",
"ref": "1.8.1",
"repo": "crystal",
"type": "github"
}
},
"crystal-x86_64-darwin": {
"flake": false,
"locked": {
"narHash": "sha256-NqYaZHM3kHAgYbO0RDJtA8eHqp4vVe4MBpisTOGrRVw=",
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-darwin-universal.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-darwin-universal.tar.gz"
}
},
"crystal-x86_64-linux": {
"flake": false,
"locked": {
"narHash": "sha256-/Jk3uiglM/hzjygxmMUgVTvz+tuFFjBv8+uUIL05rXo=",
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-linux-x86_64.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/crystal-lang/crystal/releases/download/1.8.1/crystal-1.8.1-1-linux-x86_64.tar.gz"
}
},
"crystalline-src": {
"flake": false,
"locked": {
"lastModified": 1681549124,
"narHash": "sha256-kx3rdGqIbrOaHY7V3uXLqIFEYzzsMKzNwZ6Neq8zM3c=",
"owner": "elbywan",
"repo": "crystalline",
"rev": "4ac0ae282c5f4172230fea1e93df51c2b380f475",
"type": "github"
},
"original": {
"owner": "elbywan",
"ref": "v0.9.0",
"repo": "crystalline",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -41,6 +173,24 @@
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1672152762,
"narHash": "sha256-U8iWWHgabN07zfbgedogMVWrEP1Zywyf3Yx3OYHSSgE=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "19e0f88324d90509141e192664ded98bb88ef9b2",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1675933616,
"narHash": "sha256-/rczJkJHtx16IFxMmAWu5nNYcSXNg1YYXTHoGjLrLUA=",
@ -142,7 +292,7 @@
},
"nix-gaming": {
"inputs": {
"flake-parts": "flake-parts",
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
]
@ -178,6 +328,24 @@
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1671359686,
"narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"dir": "lib",
"lastModified": 1675183161,
@ -197,6 +365,7 @@
},
"root": {
"inputs": {
"crystal-flake": "crystal-flake",
"home-manager": "home-manager",
"hypr-contrib": "hypr-contrib",
"hyprland": "hyprland",

View File

@ -6,6 +6,7 @@
hyprland,
stylix,
nix-gaming,
crystal-flake,
...
} @ attrs: let
VARIABLES = import ./src/variables.nix;
@ -55,5 +56,10 @@
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
crystal-flake = {
url = "github:manveru/crystal-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}

View File

@ -88,7 +88,6 @@ in {
recode
rmlint
sd
crystal
shards
smartmontools
sqlitebrowser

View File

@ -3,6 +3,7 @@
lib,
hypr-contrib,
nix-gaming,
crystal-flake,
...
}: let
VARIABLES = import ./variables.nix;
@ -57,6 +58,9 @@ in {
environment.systemPackages = with pkgs; [
hypr-contrib.packages."${VARIABLES.system}".grimblast
nix-gaming.packages."${VARIABLES.system}".osu-stable
ameba
crystal-flake.packages.${VARIABLES.system}.crystal
crystal-flake.packages.${VARIABLES.system}.crystalline
(pkgs.callPackage ../packages/waycorner {})
(pkgs.callPackage ../packages/srb2 {})
slade