Initial commit
This commit is contained in:
commit
980cefadd3
2 changed files with 63 additions and 0 deletions
26
flake.lock
generated
Normal file
26
flake.lock
generated
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1667629849,
|
||||
"narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3bacde6273b09a21a8ccfba15586fb165078fb62",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
37
flake.nix
Normal file
37
flake.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
description = "OutFox";
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
packages.x86_64-linux.outfox =
|
||||
with import nixpkgs { system = "x86_64-linux"; };
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "outfox";
|
||||
version = "0.4.18";
|
||||
date = "20221026";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/TeamRizu/OutFox/releases/download/OF${version}/OutFox-LTS-${version}-Linux-64bit-date-${date}.tar.gz";
|
||||
sha256 = "sha256-g25xp0E5kqYngrU/CDog8yseq8nOZyhnRCpfBZRaWhg=";
|
||||
};
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
bzip2
|
||||
libGL
|
||||
libjack2
|
||||
libpulseaudio
|
||||
stdenv.cc.cc
|
||||
xorg.libX11
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/outfox $out/bin
|
||||
mv * $out/share/outfox
|
||||
ln -s $out/share/outfox/OutFox $out/bin/outfox
|
||||
'';
|
||||
};
|
||||
defaultPackage.x86_64-linux = self.packages.x86_64-linux.outfox;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue