Update nixpkgs to nixos-unstable
This commit is contained in:
parent
b903eae7e5
commit
b49471ba50
19
flake.nix
19
flake.nix
@ -1,28 +1,13 @@
|
|||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
inputs.bscpkgs.url = "git+https://git.sr.ht/~rodarima/bscpkgs?ref=riscv-benchmarks";
|
inputs.bscpkgs.url = "git+https://git.sr.ht/~rodarima/bscpkgs?ref=riscv-benchmarks";
|
||||||
# When changing bscpkgs, take directly from disk to avoid having to push:
|
# When changing bscpkgs, take directly from disk to avoid having to push:
|
||||||
#inputs.bscpkgs.url = "/home/Computational/rarias/bscpkgs";
|
#inputs.bscpkgs.url = "/home/Computational/rarias/bscpkgs";
|
||||||
|
|
||||||
outputs = {self,...}@inputs:
|
outputs = {self, nixpkgs, ...}@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
remoteNixpkgsPatches = [
|
|
||||||
{
|
|
||||||
meta.description = "sha256-ZCDQ7SpGhH8JvAwWzdcyrc68RFEWHxxAj0M2+AvEzIg=";
|
|
||||||
url = "https://github.com/NixOS/nixpkgs/pull/283460.diff";
|
|
||||||
sha256 = "sha256-g6o4rqkOOYZ6OJTzv9kTPq9Zsu5Z1QXZmPLC3Q7Sq6w=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
originPkgs = inputs.nixpkgs.legacyPackages."x86_64-linux";
|
|
||||||
nixpkgs = originPkgs.applyPatches {
|
|
||||||
name = "nixpkgs-patched";
|
|
||||||
src = inputs.nixpkgs;
|
|
||||||
patches = map originPkgs.fetchpatch remoteNixpkgsPatches;
|
|
||||||
};
|
|
||||||
nixosSystem = import (nixpkgs + "/nixos/lib/eval-config.nix");
|
nixosSystem = import (nixpkgs + "/nixos/lib/eval-config.nix");
|
||||||
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
#overlay = import ./overlay.nix;
|
#overlay = import ./overlay.nix;
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
Loading…
Reference in New Issue
Block a user