mirror of
https://github.com/larstvei/nix-config.git
synced 2024-11-26 08:58:31 +00:00
Simplify Emacs overlay
This commit is contained in:
parent
9e681067f1
commit
7a4ddb45ca
70
flake.lock
70
flake.lock
@ -20,19 +20,37 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emacs-src": {
|
"emacs": {
|
||||||
"flake": false,
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671622837,
|
"lastModified": 1671646610,
|
||||||
"narHash": "sha256-9v6yzJgtjEJTuacEe8hEzP541hivvNObEh2Hkyw1Mh0=",
|
"narHash": "sha256-3PkqA8X0ISwkKBqoZcRsLc3K6Q+gRTNoc7T8PSld/50=",
|
||||||
"owner": "emacs-mirror",
|
"owner": "nix-community",
|
||||||
"repo": "emacs",
|
"repo": "emacs-overlay",
|
||||||
"rev": "ad5a67996ddf23df904c09165475759e2e0a68b1",
|
"rev": "b7a13b83ce72c7038d1871ccb63d055b23fc6021",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "emacs-mirror",
|
"owner": "nix-community",
|
||||||
"repo": "emacs",
|
"repo": "emacs-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1667395993,
|
||||||
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -59,18 +77,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671447788,
|
"lastModified": 1671458120,
|
||||||
"narHash": "sha256-Nitle27Q2gXkuk66VZUT+iyisT4pGQwQwU9eyExOVEk=",
|
"narHash": "sha256-2+k/OONN4OF21TeoNjKB5sXVZv6Zvm/uEyQIW9OYCg8=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bfb04388d42ff49e5e81da9f0bfcb48a6367273d",
|
"rev": "e37ef84b478fa8da0ced96522adfd956fde9047a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"id": "nixpkgs",
|
||||||
"ref": "nixpkgs-22.05-darwin",
|
"type": "indirect"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
@ -89,12 +105,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1671447788,
|
||||||
|
"narHash": "sha256-Nitle27Q2gXkuk66VZUT+iyisT4pGQwQwU9eyExOVEk=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "bfb04388d42ff49e5e81da9f0bfcb48a6367273d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-22.05-darwin",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"emacs-src": "emacs-src",
|
"emacs": "emacs",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
20
flake.nix
20
flake.nix
@ -21,10 +21,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
emacs-src = {
|
emacs.url = github:nix-community/emacs-overlay;
|
||||||
url = "github:emacs-mirror/emacs";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, darwin, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, darwin, home-manager, ... }@inputs: {
|
||||||
@ -53,22 +50,15 @@
|
|||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
||||||
overlays = with inputs; [
|
overlays = with inputs; [
|
||||||
|
emacs.overlays.emacs
|
||||||
|
emacs.overlays.package
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
emacs-mac = (prev.emacs.override {
|
emacsGit = (prev.emacsGit.overrideAttrs (o: rec {
|
||||||
srcRepo = true;
|
|
||||||
nativeComp = true;
|
|
||||||
withSQLite3 = true;
|
|
||||||
withNS = true;
|
|
||||||
}).overrideAttrs (o: rec {
|
|
||||||
version = "30.0.50";
|
|
||||||
src = inputs.emacs-src;
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./patches/fix-window-role.patch
|
|
||||||
./patches/no-titlebar-rounded-corners.patch
|
./patches/no-titlebar-rounded-corners.patch
|
||||||
./patches/system-appearance.patch
|
./patches/system-appearance.patch
|
||||||
];
|
];
|
||||||
});
|
}));
|
||||||
|
|
||||||
maude-mac = final.callPackage ./pkgs/maude-mac { };
|
maude-mac = final.callPackage ./pkgs/maude-mac { };
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
((emacsPackagesFor emacs-mac).emacsWithPackages
|
((emacsPackagesFor emacsGit).emacsWithPackages
|
||||||
(epkgs: with epkgs; [
|
(epkgs: with epkgs; [
|
||||||
vterm
|
vterm
|
||||||
pdf-tools
|
pdf-tools
|
||||||
|
Loading…
Reference in New Issue
Block a user