diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4a847d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6c5c323 --- /dev/null +++ b/flake.lock @@ -0,0 +1,47 @@ +{ + "nodes": { + "lowdown-src": { + "flake": false, + "locked": { + "lastModified": 1598695561, + "narHash": "sha256-gyH/5j+h/nWw0W8AcR2WKvNBUsiQ7QuxqSJNXAwV+8E=", + "owner": "kristapsdz", + "repo": "lowdown", + "rev": "1705b4a26fbf065d9574dce47a94e8c7c79e052f", + "type": "github" + }, + "original": { + "owner": "kristapsdz", + "repo": "lowdown", + "type": "github" + } + }, + "nix": { + "inputs": { + "lowdown-src": "lowdown-src", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1604567911, + "narHash": "sha256-i4KPJvKhCn6fndh/1NominnKqIZvy0EYHJM8GEEdic4=", + "owner": "NixOS", + "repo": "nix", + "rev": "387f824cab50682e373ade49dcec4e6f99c10a42", + "type": "github" + }, + "original": { + "id": "nix", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nix": "nix", + "nixpkgs": "nixpkgs_2", + "nixpkgs-git": "nixpkgs-git" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/default.nix b/flake.nix similarity index 100% rename from default.nix rename to flake.nix diff --git a/nixGL.nix b/nixGL.nix index 2f8cb97..037ee38 100644 --- a/nixGL.nix +++ b/nixGL.nix @@ -179,14 +179,14 @@ in }; nixGLCommon = nixGL: - runCommand "nixGLCommon" { - buildInuts = [nixGL]; - } - '' - mkdir -p "$out/bin" - # star because nixGLNvidia... have version prefixed name - cp ${nixGL}/bin/* "$out/bin/nixGL"; - ''; + runCommand "nixGLCommon" { + buildInuts = [nixGL]; + } + '' + mkdir -p "$out/bin" + # star because nixGLNvidia... have version prefixed name + cp ${nixGL}/bin/* "$out/bin/nixGL"; + ''; # The output derivation contains nixGL which point either to # nixGLNvidia or nixGLIntel using an heuristic.