Make pkgs a flake

main
idylls 11 months ago
parent f129f026e9
commit edbb0b2710
Signed by: idylls
GPG Key ID: 52D7502B0C319049

@ -0,0 +1,79 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1687709756,
"narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7",
"type": "github"
},
"original": {
"owner": "numtide",
"ref": "dbabf0c",
"repo": "flake-utils",
"type": "github"
}
},
"mozilla": {
"locked": {
"lastModified": 1687771476,
"narHash": "sha256-TSpqz6qYVRoqkEdOCawEQ4/cWt/4pracmvw17HK1tgE=",
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"rev": "3a44b8783514e7d6db4b63df96071b6c2b014b07",
"type": "github"
},
"original": {
"owner": "mozilla",
"ref": "3a44b87",
"repo": "nixpkgs-mozilla",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1687729501,
"narHash": "sha256-mTLkMePoHUWvTCf3NuKbeYEea/tsikSIKBWwb9OfRr4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "35130d4b4f0b8c50ed2aceb909a538c66c91d4a0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"mozilla": "mozilla",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

@ -0,0 +1,17 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
mozilla.url = "github:mozilla/nixpkgs-mozilla/3a44b87";
flake-utils.url = "github:numtide/flake-utils/dbabf0c";
};
outputs = { self, flake-utils, nixpkgs, mozilla }:
let mkPackages = (import ./packages.nix) {
inherit nixpkgs;
rustOverlay = mozilla.overlays.rust;
};
systems = [ "x86_64-linux" ];
in flake-utils.lib.eachSystem systems (system: {
packages = mkPackages system;
});
}

@ -0,0 +1,12 @@
{ nixpkgs, rustOverlay }: system:
let pkgs = nixpkgs.legacyPackages.${system};
rustPkgs = rustOverlay pkgs pkgs;
buildRustPlatform = (import ./utils.nix).buildRustPlatform {
inherit (rustPkgs) rustChannelOf;
inherit (pkgs) makeRustPlatform;
};
in {
eww = pkgs.callPackage ./eww { inherit buildRustPlatform; };
emacs = pkgs.callPackage (import ./emacs { inherit (pkgs) emacs; }) {};
}
Loading…
Cancel
Save