Skip to content

Commit 9c1e511

Browse files
author
Albin Vass
committed
Add oils-for-unix package
1 parent 79c30d4 commit 9c1e511

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
result

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
devShells.x86_64-linux.default = pkgs.mkShell {
7171
buildInputs = [ inputs.attic.packages.x86_64-linux.attic-client ];
7272
};
73+
packages.x86_64-linux = import ./packages.nix { inherit inputs pkgs; };
7374
formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
7475
nixosConfigurations = self.lib.importHosts ./hosts {
7576
inherit inputs;

overlay.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ pkgs, inputs }: (self: super: pkgs.callPackage ./packages.nix { inherit inputs; })
1+
{ pkgs, inputs }: (self: super: import ./packages.nix { inherit inputs pkgs; })

packages.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
{ pkgs, inputs }:
22
{
3+
git-toprepo = inputs.git-toprepo.packages.${pkgs.system}.git-toprepo;
4+
oils-for-unix = let
5+
pname = "oils-for-unix";
6+
version = "0.33.0";
7+
in pkgs.stdenv.mkDerivation {
8+
inherit pname version;
9+
src = builtins.fetchTarball {
10+
url = "https://oils.pub/download/oils-for-unix-${version}.tar.gz";
11+
sha256 = "sha256:0y4pg6sz5dzyvhvx490yhbxi7603dhjmsxjqrqram7iax8xvpvfa";
12+
};
13+
14+
buildInputs = with pkgs; [
15+
readline
16+
];
17+
18+
buildPhase = ''
19+
_build/oils.sh
20+
'';
21+
22+
installPhase = ''
23+
mkdir -p $out
24+
./install
25+
'';
26+
};
327
}

0 commit comments

Comments
 (0)